implement-lld
Skill0 starsChanged 9 months agoMITView on GitHub
Read a Low Level Design document and apply the code changes it describes to the codebase.
In this repository32 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- action-itemsSkill
- add-spikeSkill
- changelogSkill
- commitSkill
- create-branchSkill
- create-issue-branch-githubSkill
- create-issue-githubSkill
- create-mr-gitlab-gitSkill
- create-pr-github-gitSkill
- create-pr-githubSkill
- decisionSkill
- emailSkill
- fix-issue-github-autoSkill
- fix-issue-githubSkill
- hldSkill
- jira-ticket-gitSkill
- jira-ticketSkill
- lldSkill
- prSkill
- reconcileSkill
- resolve-conflictsSkill
- resolve-open-questionsSkill
- reviewSkill
- spikeSkill
- standup-gitSkill
- standupSkill
- syncSkill
- tag-release-ansibleSkill
- tag-release-npmSkill
- tag-releaseSkill
- tldrSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
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
- Distinctive: line 7
Read a Low Level Design document and apply the code changes it describes to the codebase.
- Distinctive: line 14
If $ARGUMENTS contains a path, use it.
- Distinctive: line 16
Check that the file at that path exists.
- Distinctive: line 18
Read the LLD file, including its frontmatter.
- Very specific: line 19
Read Mode:. A missing field means Strict — fully backward compatible with LLDs written before this field existed.
- Very specific: line 20
If the LLD links to an HLD (via HLD: in the Overview), read that HLD's Mode: too.
- Distinctive: line 38
Search for existing files, classes, or modules named in the Scope section.
- Distinctive: line 39
Read those files to understand the current implementation and conventions before making any changes.
- Distinctive: line 46
Follow the existing patterns and conventions in the codebase.
- Distinctive: line 47
Do not add parameters or alter signatures beyond what's specified (Strict), or beyond what a discovered-better-approach deviation requires …
- Distinctive: line 50
Do not refactor or change code unrelated to the LLD.
- Distinctive: line 51
Do not add comments, docstrings, or logging unless the LLD specifically calls for them.
≈ “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.
Files
Read a Low Level Design document and apply the code changes it describes to the codebase.
$ARGUMENTS is the path to the LLD file (e.g. design/lld-user-auth-service.md), optionally followed by --req <ID>[,<ID>...] (e.g. --req REQ-3.1 or --req REQ-3.1,REQ-3.2) to restrict implementation to specific requirement rows instead of everything outstanding. The path may be omitted if it's already clear from this conversation — see step 1.
Steps:
- Determine the target LLD path:
- If $ARGUMENTS contains a path, use it.
- If not, look back through this conversation for an LLD path already established (created via
/lld, or referenced by an earlier/spike,/add-spike,/resolve-open-questions,/implement-lld, or/reconcilecall in this session). If exactly one is found, confirm it with the user before proceeding rather than silently assuming. If more than one is found, list them and ask which to use. If only an HLD path was referenced with no LLD yet, tell the user and stop — don't guess an LLD that doesn't exist. If none is found, ask the user to provide a path and stop. - Check that the file at that path exists. If it does not, tell the user and stop.
- Read the LLD file, including its frontmatter. Determine the mode:
- Read
**Mode:**. A missing field meansStrict— fully backward compatible with LLDs written before this field existed. - If the LLD links to an HLD (via
**HLD:**in the Overview), read that HLD's**Mode:**too. If it differs from the LLD's mode, warn the user about the mismatch but proceed using the LLD's mode — don't fail.
- Read
- Determine which
## Requirementsrows are in scope for this run:- If
--req <ID>[,<ID>...]was passed, scope to exactly those rows. If any named ID doesn't exist in the file, tell the user and stop. If any named ID is currently- [x](already checked off), implement it anyway — an explicit--reqis a deliberate re-implementation request. - If
--reqwas not passed, scope to every row currently- [ ](unchecked). Skip rows already- [x]— do not re-touch or re-verify code for requirements already marked complete. - In both cases, any row marked
_(Needs Review — ...)_or_(Needs Spike — ...)_is always excluded from scope, even if named explicitly via--req— both are stop-and-surface-to-user conditions, never implemented or checked off automatically.Needs Spikespecifically means the requirement rests on an assumption/spikehasn't validated yet — implementing it would build on an unproven foundation. Report each excluded row to the user instead, grouped by which annotation blocked it.
- If
Extract the following sections to drive implementation, filtered to what supports the rows in scope from step 3:
- Scope — the specific classes, modules, endpoints, or functions to create or modify
- API / Interface Design — function signatures, endpoint contracts, or event schemas to implement
- Data Models — data structures, fields, types, and constraints to define
- Component Interactions — how this component calls and is called by others
- Error Handling — error conditions to handle and how to surface them
- Edge Cases — non-obvious inputs or states that require special handling
Skip any section or subsection that contains a
_TODO:stub — do not invent content for stubs. Record each skipped stub to report to the user at the end.- Explore the codebase to find the files relevant to the Scope:
- Search for existing files, classes, or modules named in the Scope section.
- Read those files to understand the current implementation and conventions before making any changes.
Apply the code changes needed to implement what the LLD describes, per the resolved mode:
- Strict mode — implement exactly as specified. Do not deviate from the API / Interface Design, Data Models, or Component Interactions. Skip
_TODO:stubs rather than inventing content for them. - Living mode — treat the LLD as a draft. Deviations are permitted where the code reveals a better approach, but do not silently edit the LLD's own sections mid-implementation to match — leave that for
/reconcileto capture after the fact.
In both modes:
- Follow the existing patterns and conventions in the codebase.
- Do not add parameters or alter signatures beyond what's specified (Strict), or beyond what a discovered-better-approach deviation requires (Living).
- Define Data Models using the field names, types, and constraints from the LLD.
- Implement Error Handling and Edge Cases as specified.
- Do not refactor or change code unrelated to the LLD.
- Do not add comments, docstrings, or logging unless the LLD specifically calls for them.
- As each in-scope
## Requirementsrow is implemented, check it off (- [ ]→- [x]) in the LLD file.
- Strict mode — implement exactly as specified. Do not deviate from the API / Interface Design, Data Models, or Component Interactions. Skip
- Roll up completed parent requirements. For each LLD row just checked off that references a parent HLD requirement (
REQ-N.xreferencing HLDREQ-N), and the LLD links to an HLD: check every current row in this LLD referencing that sameREQ-N— ignore struck-through/superseded rows (only the latest successor counts), but treat any row still- [ ]— including any markedNeeds RevieworNeeds Spike— as blocking. If none are blocking, check offREQ-Nin the HLD file too. Never check off an HLD row this way if any referencing LLD row is unchecked,Needs Review, orNeeds Spike. - Living mode only: once implementation and Requirements checkboxes are complete, invoke
/reconcileagainst this same LLD (and its linked HLD, if any) so the docs and code land in sync before the user commits. - Summarise what was changed and why, referencing specific files and line numbers. List any stub sections that were skipped, any
Needs RevieworNeeds Spikerows excluded from scope, any HLD rows checked off via rollup, and (Living mode) confirm/reconcilewas run. Do not commit or push — leave that to the user.
$ARGUMENTS
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
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.

