agentleFS
hybridindiehybridindie/comfyui_mcp/.claude/skills/customize-harness/SKILL.md

customize-harness

Skill2 starsChanged 6 days agoMITView on GitHub

Semantically tailor the installed AI harness to the project domain and the user's workflow conventions. Idempotent.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read: README.md, pyproject.toml / package.json description or name.

    line 24
  2. Very specific:

    Read only the rule/agent/command files whose names appear in AGENTS.md or the requested change.

    line 25
  3. Very specific:

    Do not read: templates/, generator source, or unrelated repositories.

    line 27
  4. Distinctive:

    Read domain facts: Use README.md and the manifest fields.

    line 34
  5. Distinctive:

    Use judgment only for:

    line 52
  6. Distinctive:

    Do not invent project facts or change the stack.

    line 58
  7. Distinctive:

    Stop if AGENTS.md or CLAUDE.md is missing.

    line 83
  8. Distinctive:

    Stop if the plan is not approved.

    line 84
  9. Distinctive:

    Stop if drift validation fails.

    line 85
  10. Very specific:

    Do not touch templates/ or any genesis file.

    line 86
  11. Very specific:

    Default: read AGENTS.md, CLAUDE.md, my-workflows.md, and the domain manifest.

    line 90
  12. Distinctive:

    If a sixth rule is needed for a correctness decision, include it and say why.

    line 93

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Customize Harness

<!-- contract: .claude/rules/doctrine/skill-execution.md version: 2.0.0, owner: John D -->

Tailor the installed harness in place. Rendering owns placeholders; this skill owns semantic fit and workflow weaving. It never needs the genesis repo.

Inputs

  • Required: AGENTS.md, CLAUDE.md, my-workflows.md (if present).
  • Read: README.md, pyproject.toml / package.json description or name.
  • Read only the rule/agent/command files whose names appear in AGENTS.md or the requested change; do not open every rule.
  • Do not read: templates/, generator source, or unrelated repositories.

Deterministic Steps

  1. Inventory. Run python3 .claude/skills/customize-harness/scripts/inventory.py --root .; use its JSON counts and workflow-section status.
  2. Read domain facts. Use README.md and the manifest fields; if the domain is still unclear, ask one question.
  3. Read workflows. Open my-workflows.md; ignore every section that is still a <placeholder>.
  4. Build the edit plan. One row per file: current problem, exact change, reason. Group as domain fit, coverage, workflow weaving, trim, or missing rule.
  5. Stop for approval. Show the plan and ask “Apply this plan? Reply yes, or adjust.” Do not edit before approval.
  6. Apply in place. Preserve headings. Keep CLAUDE.md thin, keep the AGENTS.md rule index accurate, and never delete user-authored content without confirmation.
  7. Validate. Run python3 .claude/hooks/check-project-drift.py --quiet; stop on failure.
  8. Report. List changed files, removed rules, added rules, and any skipped workflow sections.

LLM Judgment

Use judgment only for:

  • mapping generic examples to the project's actual domain terms;
  • deciding which rules genuinely do not fit;
  • weaving filled-in workflow conventions into AGENTS.md without copying.

Do not invent project facts or change the stack.

Output

## Customize Plan
| File | Change | Reason |
|------|--------|--------|

Apply this plan? Reply yes, or adjust.

After approval, report:

## Customize Result
Changed: <file list>
Rules removed: <list or none>
Rules added: <list or none>
Workflow sections skipped: <list or none>
Validation: PASS | FAIL

Stop Conditions

  • Stop if AGENTS.md or CLAUDE.md is missing; run bootstrap first.
  • Stop if the plan is not approved.
  • Stop if drift validation fails.
  • Do not touch templates/ or any genesis file.

Token Budget

  • Default: read AGENTS.md, CLAUDE.md, my-workflows.md, and the domain manifest.
  • Open at most five rule files per pass; never load .claude/rules/** wholesale. If a sixth rule is needed for a correctness decision, include it and say why.
  • Plan and report ≤ 300 words each; use a table when more files change.

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.