agentleFS
isac322isac322/kwin-mcp/.claude/skills/check-docs-seo/SKILL.md

check-docs-seo

Skill61 starsChanged 2 months agoMITView on GitHub

Check whether documentation needs updating after code changes. Automatically invoked at git commit time via the PostToolUse hook. Can also be invoked manually at any time. Run scripts/check_docs_seo.py to detect missing SEO keywords, positioning terms, plugin manifest keyword drift, SKILL.md identity violations, and tool-count drift: The checker covers documentation SEO, plugin manifest keyword sync (.claude-plugin/marketplace.json + integrations/*/plugin.json + package.json must include the required keyword subset), SKILL.md byte-identity (Claude Code source ↔ OpenCode plugin mirror), and tool-count consistency (auto-detected from src/kwin_mcp/server.py).

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check whether documentation needs updating after code changes.

    line 3
  2. Very specific:

    Run scripts/check_docs_seo.py to detect missing SEO keywords, positioning terms, plugin manifest keyword drift, SKILL.md identity …

    line 17
  3. Very specific:

    If check_docs_seo.py reports SKILL.md drift or version mismatches, run the dedicated sync script.

    line 27
  4. Very specific:

    After repair, re-run check_docs_seo.py to confirm cleanliness.

    line 34
  5. Distinctive:

    If issues are detected, determine the trigger labels by checking which files were changed in the current commit (or staged changes):

    line 43
  6. Very specific:

    Read .claude/positioning.yml (canonical source of truth)

    line 51
  7. Distinctive:

    Update only the output targets for active trigger labels

    line 54

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Docs SEO Consistency Check

Check whether documentation needs updating after code changes.

Usage

/check-docs-seo

Automatically invoked at git commit time via the PostToolUse hook. Can also be invoked manually at any time.

Instructions

Step 1: Run the consistency checker

Run scripts/check_docs_seo.py to detect missing SEO keywords, positioning terms, plugin manifest keyword drift, SKILL.md identity violations, and tool-count drift:

python3 scripts/check_docs_seo.py

The checker covers documentation SEO, plugin manifest keyword sync (.claude-plugin/marketplace.json + integrations/*/plugin.json + package.json must include the required keyword subset), SKILL.md byte-identity (Claude Code source ↔ OpenCode plugin mirror), and tool-count consistency (auto-detected from src/kwin_mcp/server.py).

Step 1.5: Run the plugin version + SKILL sync checker

If check_docs_seo.py reports SKILL.md drift or version mismatches, run the dedicated sync script. It is idempotent and can either repair (no flag) or just verify (--check):

python3 scripts/sync_plugin_version.py --check  # CI mode, no writes
python3 scripts/sync_plugin_version.py          # writer mode

After repair, re-run check_docs_seo.py to confirm cleanliness.

Step 2: Evaluate the result

  • All checks passed: Report no-op and stop. No documentation changes needed.
  • Issues detected: The script reports which files are missing which terms. Continue to Step 3.

Step 3: Invoke the docs-seo agent

If issues are detected, determine the trigger labels by checking which files were changed in the current commit (or staged changes):

git diff --name-only HEAD~1 HEAD

Then use the @docs-seo agent with the changed files and trigger labels as context. The agent follows its Evaluation Workflow (defined in .claude/agents/docs-seo.md) to:

  1. Read .claude/positioning.yml (canonical source of truth)
  2. Assemble the input set for each active trigger label
  3. Detect gaps in documentation files
  4. Update only the output targets for active trigger labels
  5. Report no-op for any scope where no changes are needed

Step 4: Report

Summarize what was checked and what was changed (or that no changes were needed).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.