agentleFS
yugasunyugasun/aiops/skills/aiops-implement/SKILL.md

aiops-implement

Skill4 starsChanged 3 months agoApache-2.0View on GitHub

Delivery overlay — orchestrates lean ladder, tdd, prune, review with sub-phase gates; commits only on user approval.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 2 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

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

    If /prototype ran: VERDICT.md before absorbing prototype learnings

    line 17
  2. Very specific:

    If graphify-out/graph.json exists, tell the user "查询代码图谱评估修改影响面" then query /code-graph query impact <target-file> before writing code to …

    line 21
  3. Distinctive:

    Run sub-phases in order. Do not skip unless user explicitly exempts a step (e.g.

    line 25
  4. Very specific:

    If any file you touch approaches 500 lines, invoke /file-refactor before advancing to prune — split per that skill (types → utils → hooks → …

    line 39
  5. Very specific:

    When .scratch/<slug>/tasks.md contains YAML frontmatter with waves:, execute tasks wave by wave:

    line 43
  6. Very specific:

    Read the waves list from frontmatter.

    line 45
  7. Distinctive:

    After completing a wave, verify tests pass before starting the next.

    line 47
  8. Very specific:

    If no tasks.md frontmatter exists, implement tasks sequentially in document order.

    line 50
  9. Very specific:

    Run typechecking and targeted tests during implement.

    line 54

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

aiops-implement

Implement from PRD, issue brief, or tech-spec. Not for grill/alignment — lean active only while writing code.

Invoked by Flow Conductor delivery phase (builder agent). Update flow.state.yaml → delivery_sub_phase as you progress.

Preconditions

  • Issue brief or issues/<current> AC, or tech-spec.md + NOTES.md
  • DESIGN_REVIEW.md APPROVE when design review ran in this flow
  • If /prototype ran: VERDICT.md before absorbing prototype learnings

Impact analysis (before implement)

If graphify-out/graph.json exists, tell the user "查询代码图谱评估修改影响面" then query /code-graph query impact <target-file> before writing code to understand the blast radius. Log affected modules in the journey context so the builder knows what might break.

Orchestration (hard gates — fixed order)

Run sub-phases in order. Do not skip unless user explicitly exempts a step (e.g. mechanical fix → skip new tests).

Sub-phasedelivery_sub_phaseWhoSkill / actionGate to advance
1implementbuilderlean ladder + write codeTests for changed behaviour pass
2implementbuilder/tdd at public interfacesRed-green on agreed surface
3prunequality-auditor/prune on diffFindings listed or "Lean already"
4reviewcode-reviewer/review vs NOTES/tech-spec/issueREVIEW.md APPROVE
5ready_for_commit—Set journey gate ready_for_commitUser may ask gitops to ship

Record in journey gates_satisfied: prune_done, review_approve, ready_for_commit.

File size

If any file you touch approaches 500 lines, invoke /file-refactor before advancing to prune — split per that skill (types → utils → hooks → sub-components). Skip only when the user exempts or the file is intentionally monolithic.

Wave-based execution (when tasks.md has frontmatter)

When .scratch/<slug>/tasks.md contains YAML frontmatter with waves:, execute tasks wave by wave:

  1. Read the waves list from frontmatter.
  2. For each wave, implement all tasks in the wave (they are independent).
  3. After completing a wave, verify tests pass before starting the next.
  4. Within a wave, prefer the order listed in the frontmatter.

If no tasks.md frontmatter exists, implement tasks sequentially in document order.

Commit — only when user explicitly asks. Never commit autonomously. Shipping is /gitops in conductor ship phase.

Run typechecking and targeted tests during implement; full suite once before review.

Narration (when conductor shows novice text)

Sub-phase 1–2: 「写代码 + 测试」→ sub-phase 3: 「精简 diff」→ sub-phase 4: 「对照设计评审」→ sub-phase 5: 「等你确认再提交」.

Lean off during grill

Alignment uses /grill-with-docs without lean. Switch to lean when sub-phase implement starts.

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.