agentleFS
Luis85Luis85/agentic-workflow/.claude/skills/specorator-improvement/SKILL.md

specorator-improvement

Skill0 starsChanged 6 months agoMITView on GitHub

Improve the Specorator template itself — scripts, tooling, workflow, agents, skills, templates, docs, and operational automation — through the spec-driven contributor loop. TRIGGER when: new track, new agent, new skill, new workflow, template self-change, modifying docs/ .claude/ scripts/ templates/ AGENTS.md CLAUDE.md, or any change to Specorator itself. SKIP when: building a downstream product with the template (use orchestrate instead).

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when a user is actively working with Specorator and wants to improve the template itself, such as adding a quality drift …

    line 9
  2. Distinctive:

    Patch all owned surfaces: Keep docs, commands, skills, scripts, generated references, examples, state files, and PR text consistent in the …

    line 47
  3. Distinctive:

    Repair generated content: Run the narrow fix command for changed generated surfaces:

    line 48
  4. Very specific:

    Verify: Run targeted checks while iterating, then npm run verify before push.

    line 53
  5. Distinctive:

    Deliver: Commit with an imperative message that references the owning requirement, task, issue, or artifact.

    line 54
  6. Distinctive:

    Add a read-only check that detects drift and emits stable diagnostics.

    line 90
  7. Distinctive:

    Add a deterministic fixer only for generated or mechanical drift.

    line 91
  8. Distinctive:

    Document how humans interpret and resolve non-mechanical findings.

    line 92
  9. Distinctive:

    Add an operational routine only after local and PR behavior is stable.

    line 94

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

Specorator Improvement

Use this skill when a user is actively working with Specorator and wants to improve the template itself, such as adding a quality drift review script, a CI tool, a new workflow, or updates to the Specorator method.

This skill is for the template repository. If the request is about a product being built with the template, route to orchestrate, discovery-sprint, project-scaffolding, or the active feature workflow instead.

When to invoke (trigger keywords)

Invoke this skill — ahead of any generic brainstorming or planning skill — when the work involves:

  • Adding or changing a track, stage, agent, skill, slash command, or workflow rule
  • Modifying docs/, .claude/, scripts/, templates/, memory/, AGENTS.md, or CLAUDE.md
  • Any phrase like "new track", "new agent", "new skill", "new workflow", "update template", "change workflow", "add script", "add CI", "fix specorator", "improve the template"

Skip this skill when building a downstream product with the template. Use orchestrate, discovery-sprint, project-scaffolding, or the active feature workflow instead.

Modes

  • script — repository scripts, checks, fixers, generated references, diagnostics.
  • tooling — CI, dependencies, operational agents, scheduled automation, developer tooling.
  • workflow — lifecycle changes, tracks, slash commands, agents, skills, templates, state files, handoffs.
  • update — classify the idea first, then apply the relevant mode rules.

Read first

  • AGENTS.md
  • memory/constitution.md
  • .claude/memory/MEMORY.md
  • .codex/instructions.md and .codex/workflows/pr-delivery.md when Codex is making the change.
  • docs/specorator.md
  • docs/quality-framework.md
  • Relevant docs under docs/steering/, docs/scripts/, docs/workflow-overview.md, and docs/sink.md.

Improvement loop

  1. Intake gate. List inputs/ non-recursively before framing. Surface every item via a single AskUserQuestion: "I see N items in inputs/. Which are relevant for this improvement?" Improvement work often arrives as a pre-staged zip (design system, plugin pack, vendor handoff) — those are exactly the work packages this gate is for. Never auto-extract archives — extraction is a separate, explicitly approved step. Cite paths into inputs/ from the lifecycle artifact at step 2. Full contract: docs/inputs-ingestion.md. Decision: ADR-0017.
  2. Frame the improvement. State the problem, user scenario, non-goals, and the expected artifact or automation. Example: "When an active contributor changes workflow docs, the template should detect quality drift before PR."
  3. Trace it. Find or create the lifecycle artifact under specs/<feature>/ that owns the change. Requirements and tasks must use stable IDs when the change is non-trivial.
  4. Classify scope. Decide whether the change touches scripts, tooling, workflow, docs, agents, skills, templates, state/schema, product page, operational agents, or ADRs.
  5. Design before implementation. For workflow or tooling changes, write down affected surfaces and quality gates before editing implementation files.
  6. Patch all owned surfaces. Keep docs, commands, skills, scripts, generated references, examples, state files, and PR text consistent in the same branch.
  7. Repair generated content. Run the narrow fix command for changed generated surfaces:
    • npm run fix:commands after slash-command changes.
    • npm run fix:script-docs after script API doc changes.
    • npm run fix:adr-index after ADR changes.
    • npm run fix when multiple generated surfaces changed.
  8. Verify. Run targeted checks while iterating, then npm run verify before push.
  9. Deliver. Commit with an imperative message that references the owning requirement, task, issue, or artifact. Push the branch and open a PR when GitHub access is available.

Script checklist

  • CLI entry lives in scripts/<name>.ts.
  • Reusable logic lives in scripts/lib/ when it will be shared or tested directly.
  • Tests live under tests/scripts/**/*.test.ts.
  • User-facing command is added to package.json.
  • Read-only checks use check:*; deterministic mutators use fix:*.
  • Diagnostics support human-readable output and --json when useful.
  • scripts/README.md and generated docs/scripts/ stay current.
  • npm run verify includes the check when drift should fail the gate.

Tooling checklist

  • Trigger and authority are explicit: local, PR CI, scheduled, manual, or operational agent.
  • Permissions are least-privilege and documented.
  • New dependencies have a PR justification and lockfile update.
  • Architecturally significant tooling has an ADR.
  • Failure behavior is explicit: warn, fail verify, open issue, comment on PR, or block release.
  • Rollback or disable path is documented for CI and scheduled automation.

Workflow checklist

  • Workflow class is named: lifecycle stage, optional gate, pre-stage track, operational routine, project track, portfolio track, or contributor workflow.
  • Owner role and handoff points are explicit.
  • Persistent artifacts have templates and sink documentation.
  • State transitions and skip rules are documented.
  • Slash commands, skills, agents, and command inventories are consistent.
  • docs/specorator.md and docs/workflow-overview.md describe the new user path.
  • Any irreversible governance change has an ADR.

Quality drift review pattern

For ideas like "automate quality drift review," prefer this sequence:

  1. Add a read-only check that detects drift and emits stable diagnostics.
  2. Add a deterministic fixer only for generated or mechanical drift.
  3. Document how humans interpret and resolve non-mechanical findings.
  4. Wire the read-only check into npm run verify once false positives are controlled.
  5. Add an operational routine only after local and PR behavior is stable.

Stop conditions

Pause and ask the human before:

  • Changing the constitution.
  • Adding write, merge, deployment, or destructive automation.
  • Creating a new mandatory stage or changing existing stage ownership.
  • Force-pushing, deleting remote branches, or merging the PR.

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.