implementation-standards
Skill97 starsChanged 3 months agoMITView on GitHub
Reference material with coding standards (defensive coding, error handling, testing patterns). Loaded on demand by the Developer sub-agent (`.github/agents/_developer.md`); not directly invokable.
In this repository51 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- sddp-amendSkill
- sddp-analyzeSkill
- sddp-autopilotSkill
- sddp-checklistSkill
- sddp-clarifySkill
- sddp-devopsSkill
- sddp-devsetupSkill
- sddp-implement-qc-loopSkill
- sddp-implementSkill
- sddp-initSkill
- sddp-planSkill
- sddp-prdSkill
- sddp-projectplanSkill
- sddp-qcSkill
- sddp-regenSkill
- sddp-specifySkill
- sddp-systemdesignSkill
- sddp-tasksSkill
- sddp-amendSkill
- sddp-analyzeSkill
- sddp-autopilotSkill
- sddp-checklistSkill
- sddp-clarifySkill
- sddp-devopsSkill
- sddp-devsetupSkill
- sddp-implement-qc-loopSkill
- sddp-implementSkill
- sddp-initSkill
- sddp-planSkill
- sddp-prdSkill
- sddp-projectplanSkill
- sddp-qcSkill
- sddp-regenSkill
- sddp-specifySkill
- sddp-systemdesignSkill
- sddp-tasksSkill
- adr-authoringSkill
- artifact-conventionsSkill
- clarification-strategiesSkill
- compact-communicationSkill
- instructions-managementSkill
- markdown-compressionSkill
- plan-authoringSkill
- quality-assuranceSkill
- sdd-methodologySkill
- spec-authoringSkill
- task-generationSkill
- writing-qualitySkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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 12
Fail Fast: Check preconditions immediately.
- Very specific: line 13
Null Safety: Avoid returning null. Use Option types or explicit "Not Found" errors.
- Very specific: line 18
No Silent Failures: No empty catch blocks.
- Distinctive: line 21
External Dependencies: Always mock 3rd party APIs in unit tests.
- Distinctive: line 51
When context budget is tight (late in long implementation runs):
- Distinctive: line 57
Before confirming task "Complete":
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Implementation Standards
Core Coding Principles
1. Defensive Coding
- Input Validation: Validate at entry point (Controller/API). Never trust user input.
- Fail Fast: Check preconditions immediately. Throw specific errors, not generic 500s.
- Null Safety: Avoid returning
null. UseOptiontypes or explicit "Not Found" errors.
2. Error Handling
- Structured Errors: Standard format (Code, Message, Details).
- Log Context: Log stack trace AND input parameters on catch.
- No Silent Failures: No empty
catchblocks.
3. Testing Mocks
- External Dependencies: Always mock 3rd party APIs in unit tests.
- Determinism: Tests must run without network access.
Common Patterns
Repository Pattern (Data Access)
interface UserRepository {
findById(id: string): Promise<User | null>
save(user: User): Promise<User>
}Service Layer (Business Logic)
Contains all domain rules. Never access DB directly from Controller.
class UserService {
constructor(repo: UserRepository)
async register(email: string) {
if (await this.repo.findByEmail(email)) {
throw new DuplicateEmailError()
}
// ... logic
}
}Context-Window Efficiency
When context budget is tight (late in long implementation runs):
- Targeted reads: re-read specific sections, not entire files.
- Defer optional docs: load
data-model.mdandcontracts/only when current task references them. - Summarize: reference earlier findings by key point, don't re-include full content.
Review Checklist for Agents
Before confirming task "Complete":
- Compiles/runs? (No syntax errors)
- Imports clean? (No unused imports)
- Types explicit? (No
anyorvarif avoidable) - Comments helpful? (Explain "Why", not "What")
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.

