Index of every page on this site: llms.txt
All skills
roby2358 avatar

/implement

@956ee23
by roby2358roby2358/skills5 stars
Run it yourself

Implement an app from its design docs, either a SPEC.md or the ONTOLOGY.md + CRITERIA.md set (with DYNAMICS and RATIONALE), in order (contract, then headless core and tests, then tuning, then UI), then review JS and CSS and reconcile the docs. Use after creating or updating a SPEC.md or ONTOLOGY.md.

Use this Skill: https://skilld.dev/gh/roby2358/skills/implement

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈78 tokens for metadata: the name and description. ≈1.4k when used: this file.

Description uses 3.9% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈312 characters, or 3.9%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Implement Workflow

Build an app from its design documents in a fixed order: contract and tests first, then the headless core, then measured tuning, then UI, then reviews and doc reconciliation. Use subagents for the review tasks.

Required Input

An app path (e.g. balance, survive, or a full path).

Step 0: Find the spec format

Look in the app directory:

Found Format Implementation reference Checks come from "Why" lives in
ONTOLOGY.md Design-doc set ONTOLOGY (§0 purpose / goals / priorities / non-goals, then entities, state, rules as pseudocode, commands and events, numbers) CRITERIA (R-* rule tables, U-* UI checks, X-* playtest criteria) RATIONALE (D-* decisions, Q-* open questions); DYNAMICS for intent; ONTOLOGY §0 (or a legacy TELOS.md) breaks ties
SPEC.md only SPEC SPEC.md SPEC's acceptance / examples sections, or derived from its rules SPEC's notes, if any
Neither Stop Ask the user to write a spec first (specification or game-design skill)

If both exist, ONTOLOGY wins; treat SPEC.md as legacy and say so.

Step 1: Pre-flight (do not write code yet)

  • Open questions. Read RATIONALE's Q-* list (or SPEC's open questions). If any are unanswered and block a rule, batch them to the user in one message and stop.
  • Provenance. Treat items tagged [P] (proposed by Claude) as provisional and [T] as tunable. Never promote a guess to a rule silently. In a SPEC, note assumptions you make in the final report.
  • Contract. Check that the spec defines the command/action interface and the events/results it returns (ONTOLOGY "Commands and events" section, or SPEC API section). If it's missing, write it into the spec now, before the engine. It is the API between core and UI and the thing that lets the UI animate.
  • Checks. Check that every rule has a test case written as input → expect. If CRITERIA (or SPEC) lacks them, add them now, next to the rule they check.

Step 2: Core + tests, no UI

  • Implement the rules/engine as DOM-free code with seeded randomness, so runs reproduce.
  • Write the automated tests by transcribing the criteria tables. With a SPEC.md, label each assertion with its criterion ID (R-12 …) and fail if any ID has no labeled assertion. With the design-doc set, follow ontology_spec's CRITERIA layout: each automated R-row's tests live in test/R-n/, one rule per test, plus the coverage test over the Instrument column.
  • Run the tests until they pass before touching UI.

Step 3: Measure before claiming (games and simulations)

Skip this step for apps with no balance or emergent behavior.

  • Build a self-play / soak harness as a committed tool (e.g. tools/tune.js) that accepts config overrides on the command line and prints the metrics the X-* criteria name. Don't leave it in a scratch directory.
  • Tune by comparing configurations, one variable at a time. A changed number is attributed only by a controlled comparison.
  • Record each tuning decision in RATIONALE with an Evidence line: Measured by: <command> → <result> or Modeled by: <sim> (unverified in play). Never state a modeled number as fact.

Step 4: UI

  • Build the client on the command/event contract; the UI never reaches past it into rules.
  • Templates: follow the app's existing base or fork (e.g. a game forked from hexandcounter: plain-script globals, State / Engine / Board / UI split). Otherwise, use the description app for HTML structure (index.html), CSS patterns (index.css: CSS variables, dark theme, .box), and JS patterns (index.js: $.yuwakisa.[AppName] constructor).
  • Verify with a committed browser script (e.g. test/browser.js, Playwright) that loads a seeded page (?seed=N), walks every screen against the U-* criteria, saves screenshots, and fails on console errors. Look at the screenshots.

Step 5: Reviews (run in parallel subagents after Step 4)

Task A: Review JS for clarity

  • Follow coding standards from the coding skill.
  • Look for redundant code, unclear naming, missing guard conditions. Make edits.
  • Re-run the tests afterwards.

Task B: Review and clean CSS

  • Compare against the app's base, or description/index.css.
  • Remove unused rules and redundant properties; ensure consistent variable usage.

Task C: Reconcile the docs with the code

  • SPEC format: update SPEC.md with features, error handling, and UI details that emerged, following the specification skill.
  • Design-doc format: for every rule or number that changed, update ONTOLOGY (the rule), RATIONALE (why, with Evidence), CRITERIA (the check and its status), and the tests in test/R-n/ together. Refer to constants by name where possible, not by value; the code constant is the one source. Add a dated ARCHITECTURE_LOG entry (newest first) for each structural or design change; the other docs stay current-state only.
  • Update CLAUDE.md / README run instructions for any new test or tool.

Step 6: Report

  • Tests and browser checks passed or failed, with counts.
  • Tuning results and what was measured vs. modeled.
  • Assumptions made ([P] items and SPEC gaps) for the user to confirm.
  • The X-* criteria no instrument can check, phrased as human playtest questions.

Example Usage

/implement balance
/implement survive

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts6mo3 checks · Risk SAFE
  • Gen Agent Trust Hub6mo

    This skill automates code implementation and reviews based on a local specification file. While it processes external input from SPEC.md, which presents a surface for indirect prompt injection, the risk is limited to the local environment with no network exfiltration capabilities.

  • Socket6mo

    No alerts

  • Snyk6mo

    Risk: LOW · No issues

Signed by skilld at 956ee23. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 2 months ago

README badge

README badge for roby2358/skills/implement