agentleFS
paulhondolapaulhondola/groundly/.agents/skills/implement-uc/SKILL.md

implement-uc

Skill0 starsChanged 9 days agoMITView on GitHub

Implement a Groundly use case (UC-XX) driven by its documented acceptance criteria. Use when starting work on any use case from docs/use-cases/, e.g. "/implement-uc UC-02" or "let's build the mock test generator".

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Load the contract: Read the UC's section in docs/use-cases/ (knowledge-base / student-modes / sharing).

    line 12
  2. Distinctive:

    Verify: Run the test list; every acceptance criterion must map to a passing test.

    line 20
  3. Very specific:

    Close the loop: If implementation forced a deviation from the documented flow, update the UC doc in the same change set and say why.

    line 22

≈ “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

Implement a use case

Input: a UC id (UC-01…UC-30) or feature name. The acceptance criteria in docs/use-cases/ define "done" — not vibes.

Steps

  1. Load the contract. Read the UC's section in docs/use-cases/ (knowledge-base / student-modes / sharing). Extract: preconditions, main flow, alternate/error flows, acceptance criteria. Read the referenced architecture docs for the parts this UC touches (overview.md for module placement, data-model.md for storage + interchange, retrieval.md/agents.md if applicable).
  2. Check phase order. Spec §8 orders the sub-projects. If this UC depends on machinery from an earlier sub-project that doesn't exist yet (e.g., quiz mastery needs the topic tree, sub-project 2), say so and confirm scope before coding.
  3. Restate criteria as a test list. Each acceptance criterion and each alternate flow becomes at least one named test. Include the standing invariant tests that apply (citation resolution for anything generating content; verifier gate for anything storing generated questions; export-boundary test for anything touching progress.db or export).
  4. Implement inside the module boundaries (.Codex/rules/architecture.md): client surface in cli//mcp/, logic in the owning service module, no LLM client anywhere (decision 37), long work as background tasks behind a job id. Tests first where the logic is non-trivial; tests use SQLite files + stub embedders, no services.
  5. Verify. Run the test list; every acceptance criterion must map to a passing test. Report the mapping explicitly (criterion → test name → pass/fail).
  6. Close the loop. If implementation forced a deviation from the documented flow, update the UC doc in the same change set and say why. Consider running the spec-guardian agent on the diff before finishing.

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.