Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 122 additions & 0 deletions .agents/skills/humanizer/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
---
name: humanizer
description: >
Rework AI-generated phrasing in Garden Linux documentation. Use for "humanize
this doc", "rework AI phrasing", "remove AI tells", "this reads like it was
written by an LLM", or when editing Markdown under docs/ that shows chatbot or
hype patterns. Provides the full pattern catalog and a minimal-rewrite workflow.
---

# Humanizer

Rework prose that carries AI-generated writing patterns into clear, direct
documentation. The goal is to remove recognizable LLM phrasing without changing
technical meaning.

This skill is the single source of truth for the AI-phrasing pattern catalog.
The documentation quality guide
(`docs/contributing/documentation/writing_good_docs.md`) summarizes the categories
and links here for the full list and rework guidance.

## Workflow

1. Scan the prose (ignore fenced code blocks and front matter).
2. For each suspect sentence, identify a **specific pattern ID** from the catalog
below. If no pattern applies, leave the text unchanged.
3. Rewrite with the smallest possible edit that removes the pattern.
4. Preserve technical meaning. Do not add new claims, numbers, or sources.
5. Keep the result consistent with the project style guide (active voice, concise
sentences, consistent terminology).

Refuse vague polish: never rewrite "to make it flow better". Every edit must cite
a pattern ID. Reviewers apply the same rule.

## Pattern catalog

Each entry gives the rule ID, the trigger, and a before to after example.

- **`HYPE-OPEN` - Hype openers and filler adjectives** (`delve`, `dive into`,
`embark`, `unlock`, `elevate`, `seamlessly`, `robust`, `comprehensive`,
`cutting-edge`, `powerful`, `leverage`, `harness`, `empower`, `streamline`,
`effortless`, `tapestry`, `intricate`, `interplay`, `realm`, `pivotal`,
`crucial`, `nuanced`, `dynamic`, `multifaceted`, `paradigm`, `synergy`,
`holistic`, `unleash`, `foster`). Example: "This guide will help you unlock the
full potential of..." to "This guide covers..."
- **`TRANS-BLOAT` - Transitional bloat** (`Moreover`, `Furthermore`,
`In conclusion`, `In summary`, `It's worth noting`, `It's important to note`).
Example: "Furthermore, the builder supports..." to "The builder supports..."
- **`PROMO` - Promotional flourish** (`world-class`, `best-in-class`,
`next-generation`, `revolutionary`, `game-changing`, `state-of-the-art`,
`seamless`, `unparalleled`, `unrivaled`, `premier`). Example: "a
next-generation build system" to "a purpose-built build system"
- **`HEDGE` - Contextual hedging openers** (`In today's fast-paced world`,
`In the ever-evolving landscape of`, `As we all know`, `It goes without
saying`). Delete the opener and start with the actual statement.
- **`PRONOUN-OVERREACH` - Presumptuous collective pronouns** (`we've all been
there`, `let's explore together`, `join me on this journey`). Use second person
or neutral framing instead.
- **`RHETQ` - Rhetorical-question openers** (`Ever wondered...?`, `What if I told
you...?`). State the topic directly.
- **`CANONICAL-LINT` - Canonical style anti-patterns** (`please`, `kindly`,
`note that` as filler, ornamental parentheticals such as `(and this is
important)`). Remove the filler; keep the statement.
- **`EM-DASH-DRAMA` - Em-dash as rhetorical pause** - em-dash used before a hype
word or as a dramatic mid-sentence aside (for example `- unlocking`, `- making
it`). Legitimate parenthetical em-dashes are fine.
- **`LEGACY-PUFF` - Significance or legacy claims** (`has left a lasting legacy`,
`has had a profound impact on`, `stands as a testament to`, `remains a
cornerstone of`). Replace with a specific, verifiable statement or delete.
- **`NOTABILITY-PUFF` - Notability flex** (`widely regarded as`, `has gained
recognition`, `experts agree`, `industry leaders have noted`) *(advisory)*.
Cite a source or delete.
- **`ING-BLOAT` - Gerund-chain abstractions** - chains of -ing nouns as subject
or object where a finite verb would be clearer. Example: "Configuring and
deploying involves setting up..." to "To deploy, set up..."
- **`WEASEL` - Vague attributions** (`some say`, `many believe`, `it has been
suggested`, `critics argue`). Name the source or rewrite as a factual claim.
- **`FUTURE-OUTLOOK` - "Challenges and Future Prospects" boilerplate** - section
headings or closing paragraphs following the AI outline pattern (`Looking
Ahead`, `Future Directions`, `The Road Ahead`). Replace with a specific heading
or delete.
- **`COPULA-DODGE` - Copula avoidance** (`serves as`, `functions as`, `acts as`,
`operates as`, `plays the role of` where "is" or a concrete verb suffices).
Example: "serves as the single source of truth" to "is the single source of
truth"
- **`NEG-PARALLEL` - Negative parallelisms** (`not just ... but`, `not only ...
but also`, `more than just`). State what the subject does directly.
- **`RULE-OF-THREE` - Rule-of-three overuse** - exactly three adjectives or nouns
grouped for rhetorical balance rather than precision *(advisory)*. Use the most
precise term.
- **`SYN-CYCLE` - Synonym cycling** - using different words for the same concept
within a short span (for example "build manifest", "build descriptor", "build
specification" for the same thing). Pick one term and use it throughout.
- **`FALSE-RANGE` - False ranges** (`from ... to ...` implying broad coverage from
two arbitrary endpoints). List specific items instead.
- **`BOLD-OVERUSE` - Boldface overuse** - bold applied to adjectives, adverbs, or
transitional words for decoration rather than to mark key terms or critical
warnings.
- **`EMOJI` - Emojis** - any emoji outside a code fence. Delete; replace with a
VitePress callout if semantic meaning is needed. GLDQ also enforces this
automatically via the `EMOJI` rule.
- **`CHATBOT-ARTIFACT` - Chatbot artifacts** (`Certainly!`, `Great question!`,
`As I mentioned`, `I hope this helps`, `Feel free to ask`). Delete entirely.
- **`SYCOPHANT` - Sycophantic tone** (`great job`, `well done`, `excellent
choice`, `congratulations on`). Delete; state the outcome directly.
- **`OVER-HEDGE` - Excessive hedging** - two or more hedges in one clause (`might
possibly`, `could potentially`, `may perhaps`). Use at most one hedge where
genuine uncertainty exists.
- **`GENERIC-CONCLUSION` - Generic positive conclusions** (`By following these
steps`, `Armed with this knowledge`, `You are now ready to`, `You now have a
solid understanding of`). Delete or replace with a concrete next step or link.

## Filler words

Filler words (`simply`, `just`, `easy`/`easily`, `actually`, `basically`,
`obviously`) are a separate category governed by the style guide's
banned-filler-word rule. Delete them unless they carry literal meaning.

## References

- [Wikipedia: Signs of AI writing](https://en.wikipedia.org/wiki/Wikipedia:Signs_of_AI_writing)
- [softaworks/agent-toolkit humanizer skill](https://github.com/softaworks/agent-toolkit/blob/3027f20f3181758385a1bb8c022d4041dfb4de84/skills/humanizer/SKILL.md)
- [blader/humanizer](https://github.com/blader/humanizer/blob/1b48564898e999219882660237fde01bf4843a0f/SKILL.md)
34 changes: 34 additions & 0 deletions .github/workflows/docs-checks.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Documentation Quality Checks

permissions:
contents: read
actions: read
packages: read

on:
workflow_call:
inputs:
Expand Down Expand Up @@ -193,3 +198,32 @@ jobs:
run: |
export PATH=$PATH:$HOME/go/bin
make woke

documentation-quality:
needs: aggregate
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: gardenlinux/docs

- name: Download aggregated docs
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: aggregated-docs
path: docs/

- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # pin@v6.2.0
with:
python-version: "3.13"

- name: Install PyYAML
run: pip install pyyaml

- name: Run Garden Linux Docs Quality
run: python3 src/gldq.py docs/ --strict

- name: Publish Garden Linux Docs Quality annotations
if: always()
run: python3 src/gldq.py docs/ --strict --format github
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ docs/contributing/**
!docs/contributing/documentation/
!docs/contributing/documentation/**
!docs/contributing/documentation_workflow.md
docs/contributing/documentation/features.md
docs/explanation/**
!docs/explanation/index.md
!docs/explanation/history.md
Expand Down
37 changes: 37 additions & 0 deletions .gldq-exclude.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Rule-aware exclusions for gldq.
# Aggregated files cannot be edited in this repository.
#
# Syntax:
# exclude:
# - rules: ["EMOJI", "CODE-*"] # rule wildcards; omit for all rules
# paths: ["docs/reference/**"] # paths are relative to the repo or docs root
exclude:
- rules:
- "FM-DESC"
- "RELATED-TOPICS-PRESENT"
paths:
- "docs/reference/adr/**"
- rules:
- "RELATED-TOPICS-PRESENT"
paths:
- "docs/contributing/security.md"
- "docs/contributing/workflow.md"
- "docs/reference/flavor-matrix.md"
- "docs/reference/glossary.md"
- rules:
- "CODE-LANG"
paths:
- "docs/reference/adr/0014-enforce-pr-references-in-commits.md"
- "docs/reference/adr/0035-cname-flavor-artifact-naming.md"
- "docs/reference/adr/install.md"
- rules:
- "FM-REPO"
paths:
- "docs/index.md"
- "docs/reference/releases/release-notes/**"
- rules:
- "FM-REPO"
- "RELATED-TOPICS-PRESENT"
paths:
- "docs/reference/python-gardenlinux-lib-api.md"
- "docs/reference/python-gardenlinux-lib-cli.md"
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: help run build preview publish transform aggregate aggregate-repo aggregate-update-repo aggregate-repo-single aggregate-update-repo-single test-aggregate-local clean clean-projects clean-aggregated-git test test-unit test-integration check spelling linkcheck woke glossary glossary-check format check-system-deps
.PHONY: help run build preview publish transform aggregate aggregate-repo aggregate-update-repo aggregate-repo-single aggregate-update-repo-single test-aggregate-local clean clean-projects clean-aggregated-git test test-unit test-integration check spelling linkcheck woke glossary glossary-check docs-check docs-check-strict format check-system-deps

help:
@echo "Garden Linux Documentation Hub - Available targets:"
Expand All @@ -20,6 +20,8 @@ help:
@echo " spelling - Check spelling with codespell"
@echo " linkcheck - Check links with lychee"
@echo " woke - Check inclusive language with woke"
@echo " docs-check - Run Garden Linux Docs Quality"
@echo " docs-check-strict - Run Garden Linux Docs Quality with warnings as errors"
@echo " glossary - Process glossary links in documentation"
@echo " glossary-check - Validate glossary structure"
@echo ""
Expand Down Expand Up @@ -150,6 +152,14 @@ woke:
@echo "Running inclusive language checks..."
@pnpm run docs:woke

docs-check:
@echo "Running Garden Linux Docs Quality..."
@python3 src/gldq.py docs/

docs-check-strict:
@echo "Running Garden Linux Docs Quality (strict)..."
@python3 src/gldq.py docs/ --strict

glossary:
@echo "Processing glossary links..."
@python3 src/aggregation/auto_glossary.py docs/
Expand Down
2 changes: 2 additions & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ export default defineConfig({
/test\//,
/tests\//,
/samples\//,
// humanizer skill lives in .agents/ outside the published docs root
/\.agents\/skills\/humanizer\/SKILL/,
],
head: [
[
Expand Down
2 changes: 2 additions & 0 deletions docs/contributing/documentation/adding-repos.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ related_topics:
- /contributing/documentation/technical.md
- /contributing/documentation/testing.md
- /contributing/documentation/vitepress-features.md
github_org: gardenlinux
github_repo: docs
---

# Adding Repositories to Documentation Aggregation
Expand Down
6 changes: 4 additions & 2 deletions docs/contributing/documentation/aggregation-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ related_topics:
- /contributing/documentation/technical.md
- /contributing/documentation/testing.md
- /contributing/documentation/vitepress-features.md
github_org: gardenlinux
github_repo: docs
---

# Documentation Aggregation Architecture
Expand Down Expand Up @@ -283,7 +285,7 @@ This fetches the latest from `ref` and updates commit locks.

### Repository → Temporary Directory

```
```text
Source Repo Temp Directory
├── docs/ → /tmp/xyz/repo-name/
│ ├── tutorials/ ├── tutorials/
Expand All @@ -295,7 +297,7 @@ Source Repo Temp Directory

### Temporary Directory → Docs Output

```
```text
Temp Directory Docs Output
/tmp/xyz/repo-name/ →
├── tutorials/ docs/
Expand Down
12 changes: 9 additions & 3 deletions docs/contributing/documentation/auto-glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ related_topics:
- /contributing/documentation/technical.md
- /contributing/documentation/testing.md
- /contributing/documentation/vitepress-features.md
github_org: gardenlinux
github_repo: docs
---

# Auto Glossary
Expand Down Expand Up @@ -115,7 +117,7 @@ Auto-linking creates links for glossary terms without requiring explicit markers

With auto-linking enabled, input text:

```
```text
Deploy Gardenlinux on AWS using KVM virtualization.
```

Expand Down Expand Up @@ -157,15 +159,15 @@ make glossary-check

**Term not found:**

```
```text
[Warning][auto-glossary] Term 'xyz' not found in glossary (referenced in file.md)
```

The marker remains unchanged. Add the term to the glossary, fix the spelling, or remove the marker.

**Anchor collision:**

```
```text
[Warning][auto-glossary] Anchor collision detected:
'Term 1' and 'Term 2' both generate anchor 'term-1-2'
```
Expand Down Expand Up @@ -209,3 +211,7 @@ python3 -m pytest tests/unit/test_auto_glossary*.py tests/unit/test_generate_anc
```

Test coverage includes format validation, anchor generation, alias extraction, auto-linking, and integration tests.

## Related Topics

<RelatedTopics />
2 changes: 2 additions & 0 deletions docs/contributing/documentation/ci-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ related_topics:
- /contributing/documentation/technical.md
- /contributing/documentation/testing.md
- /contributing/documentation/vitepress-features.md
github_org: gardenlinux
github_repo: docs
---

# Documentation CI Architecture
Expand Down
4 changes: 3 additions & 1 deletion docs/contributing/documentation/ci-workflows-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ related_topics:
- /contributing/documentation/technical.md
- /contributing/documentation/testing.md
- /contributing/documentation/vitepress-features.md
github_org: gardenlinux
github_repo: docs
---

# Documentation CI Workflows Reference
Expand Down Expand Up @@ -461,7 +463,7 @@ The `client_payload` (or `inputs` for manual dispatch) must contain:

All automated branches follow the pattern:

```
```text
auto/<repo-name>/<pr-number>
```

Expand Down
2 changes: 2 additions & 0 deletions docs/contributing/documentation/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ related_topics:
- /contributing/documentation/technical.md
- /contributing/documentation/testing.md
- /contributing/documentation/vitepress-features.md
github_org: gardenlinux
github_repo: docs
---

# Documentation Aggregation Configuration Reference
Expand Down
2 changes: 2 additions & 0 deletions docs/contributing/documentation/documentation_workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ related_topics:
- /contributing/documentation/technical.md
- /contributing/documentation/testing.md
- /contributing/documentation/vitepress-features.md
github_org: gardenlinux
github_repo: docs
---

# Documenting Garden Linux
Expand Down
Loading
Loading