agentleFS
rafaelghifrafaelghif/antigravity-agents-core/.agents/skills/implement/SKILL.md

implement

Skill6 starsChanged 15 days agoMITView on GitHub

Audits any ticket or PRD for ambiguity, flips ticket status to in-progress in real time, designs modular/configurable/optimized solutions reusing shared UI and utilities, executes test-first production code, runs post-ticket independent review, immediately unblocks downstream tickets, and checkpoints per-ticket handover. Use when implementing any ticket, issue, or feature slice.

192 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-ts-deep-modules, ask-matt and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • liufeng1976Skill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 53 projects that use this

  • GoogleSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 109 projects that use this

  • AWSSkill

    to-questionnaire

    Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

    Also in 107 projects that use this

  • richard12511Skill

    claude-handoff

    Hand the current conversation off to a fresh background agent that picks up the work immediately.

    Also in 51 projects that use this

  • RoentekSkill

    loop-me

    Grill me about specs for the workflows I want to build, within this workspace.

    Also in 58 projects that use this

  • AWSSkill

    implement-spec

    Implement the result of /to-spec and /to-tickets in code.

    Also in 98 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 177 edited versions we read keep these.

  • 1

    Distinctive

    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:

    Hard rule: If any behavior-changing detail is missing or contradictory, stop, cite ticket/PRD vs file:line, and call ask_question.

    line 35
  2. Distinctive:

    Before editing any production or test file:

    line 41
  3. Very specific:

    Immediate Status Transition: Update Status: in-progress in both docs/sprint/tickets/<NN>-*.md and docs/sprint/SPRINT.md so concurrent …

    line 42
  4. Very specific:

    Reuse & Callers Search: Search components/, widgets/, ui/, shared/, lib/, utils/, hooks/, schemas/, api/, read target primitives/helpers, …

    line 43
  5. Very specific:

    Follow /tdd: write failing public-seam tests (happy path, N-1/N/N+1, invalid/empty, auth, idempotency, failure mode).

    line 54
  6. Very specific:

    Run focused tests and static analyzer/typechecker (dart analyze, tsc --noEmit, etc.) after each step.

    line 56
  7. Very specific:

    Update CONTEXT.md if new seams/primitives/config vars were added, and run /self-learn if any new insight emerged.

    line 73
  8. Very specific:

    Mandatory Per-1-Ticket Handover: Run /handoff immediately after finishing this ticket (docs/sprint/HANDOFF.md + .scratch/handoff.md), then …

    line 74

“Common” is measured: kept by at least 6 in 10 of the 177 edited versions of this file we could read. “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

Implement (Real-Time Lifecycle → Ambiguity Audit → Design → TDD → Review → Unblock & Handover)

Build one ticket or vertical slice to industrial production quality—never MVP stubs, hardcoded values, deferred status updates, or unreviewed diffs.

Decision tree

  1. Does the ticket/PRD/request pass Phase 0 (Ambiguity & Feasibility Audit)?
    • No (unclear rules, UI states, auth/tenancy, config keys, API contracts, or repo conflicts) → STOP. Do NOT write code and do NOT invent defaults. Call ask_question with exact gaps and (Recommended) options.
    • Yes → Proceed to step 2.
  2. Is the ticket blocked by an unfinished ticket (Blocked by in docs/sprint/SPRINT.md)?
    • Yes → Stop and report the blocking ticket first.
    • No → If the active Wave has >= 2 independent ready tickets with disjoint files, consider /wave-execute for parallel execution; otherwise proceed to step 3.
  3. Is CONTEXT.md populated for the target area of the codebase?
    • No → Run /index-project (including scan-repo.mjs) first so you know exact dependencies, UI primitives, config/logging seams, and verification commands.
    • Yes → Immediately flip ticket status to in-progress and execute Phases 1–3 below.

Phase 0: Mandatory Ticket / PRD Ambiguity Audit (Anti-Yes-Man Gate)

Audit Jira/GitHub/Linear/chat/Sprint tickets against these 7 checks before designing or coding:

  1. Scope & Acceptance Criteria: Is every expected behavior and exclusion testable?
  2. Actors & Auth: Who can access/mutate this? What happens on 401/403/404 or cross-tenant access?
  3. Inputs & Edge Cases: Required/optional fields, bounds, formats, empty/duplicate/idempotent cases?
  4. Data & API Contract: Exact fields, status/error codes, schema migrations—and do referenced tables/endpoints exist?
  5. UI / UX States (if UI): Loading, empty, validation error, server/offline error, disabled/in-flight, responsive, disposal?
  6. Config, Logging & Failures: Env/config keys, timeouts/retries, offline/partial failure behavior?
  7. Codebase Contradictions: Does anything contradict CONTEXT.md, docs/learnings/LESSONS.md, or existing code?

Hard rule: If any behavior-changing detail is missing or contradictory, stop, cite ticket/PRD vs file:line, and call ask_question.


Phase 1: Pre-Code Design, Config/Logging & Reuse Plan (After in-progress Flip)

Before editing any production or test file:

  1. Immediate Status Transition: Update **Status**: in-progress in both docs/sprint/tickets/<NN>-*.md and docs/sprint/SPRINT.md so concurrent sessions or teammates know this ticket is actively owned.
  2. Reuse & Callers Search: Search components/, widgets/, ui/, shared/, lib/, utils/, hooks/, schemas/, api/, read target primitives/helpers, and check all callers (rg -n) of any shared symbol you will modify.
  3. Engineering Design Check (invoke /codebase-design if non-trivial):
    • Modularity & narrow DI seam at external I/O boundaries.
    • Performance optimization: zero N+1, optimal data structures, cursor pagination/ListView.builder, isolate/worker offload for heavy CPU, dispose()/close() plan.
    • Configurability: exact env, --dart-define, or typed config keys (zero hardcoded URLs, limits, or secrets).
    • Structured logging: events, traceId, and <REDACTED> secret/PII policy.

Phase 2: TDD Execution & Optimization

  1. Follow /tdd: write failing public-seam tests (happy path, N-1/N/N+1, invalid/empty, auth, idempotency, failure mode).
  2. Implement complete production logic—zero stubs, mock stores, dummy data, hardcoded secrets/URLs, or stray print/console.log.
  3. Run focused tests and static analyzer/typechecker (dart analyze, tsc --noEmit, etc.) after each step.

Phase 3: Post-Ticket Re-Check, Independent Review & Handover Commit

  1. Ticket Re-Check: Re-read the ticket/PRD line-by-line and confirm every acceptance criterion, touchpoint, UI state, config key, log event, and edge case is implemented.
  2. Black-Box Diff Audit & Full Verification:
    node .agents/skills/implement/scripts/audit-diff.mjs --help
    node .agents/skills/implement/scripts/audit-diff.mjs
    Then run the project's full test, static analysis, lint, and build commands via run_command and confirm exit code 0.
  3. Mandatory Post-Ticket Review: Flip ticket status to in-review and run /code-review (using read-only adversarial-reviewer, plus security-auditor / architecture-planner as needed) via invoke_subagent.
  4. Immediate Status Done, Downstream Unblock & Per-Ticket Handover:
    • Flip the completed ticket to done in docs/sprint/tickets/<NN>-*.md and docs/sprint/SPRINT.md immediately upon review approval.
    • Never delay unblocking: immediately inspect every blocked ticket whose Blocked by list is now 100% done and promote it to ready in both its ticket file and SPRINT.md.
    • Update CONTEXT.md if new seams/primitives/config vars were added, and run /self-learn if any new insight emerged.
    • Mandatory Per-1-Ticket Handover: Run /handoff immediately after finishing this ticket (docs/sprint/HANDOFF.md + .scratch/handoff.md), then create one atomic Conventional Commit (feat(scope): ...) if commits were authorized in this session (otherwise propose the exact commit command/message).

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.