implementation-principles
Shared cross-language delivery workflow and guidance for implementing the simplest sufficient solution, maximizing reuse of existing code, fixing root causes…
Skill by wtsi-hgi
Chalk Labs
Need help deploying implementation-principles?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/wtsi-hgi-implementation-principles
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security, productivity, finance
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/implementation-principles
What's inside
- Skill name
implementation-principles- Description
- Shared cross-language delivery workflow and guidance for implementing the simplest sufficient solution, maximizing reuse of existing code, fixing root causes, proving work against the real artifact, scoping a costly mechanism to the case that needs it, avoiding speculative abstractions, dependencies, and refactors, and never trading away validation, error handling, security, or accessibility to shorten a diff. Use when implementing or reviewing code in any language.
- License
- MIT
- Instructions
- 200 lines in SKILL.md · view on GitHub
Files (4)
- SKILL.md
- openai.yaml · agents/
- performance-gates.md · references/
- release-checks.md · references/
SKILL.md (first lines)
# Implementation Principles ## Core Rule Make the smallest coherent change that satisfies the requested behaviour and acceptance tests. Prefer the repository's existing design, code, and dependencies over introducing another way to solve the same problem. ## Before Coding Search the relevant call paths, modules, types, helpers, configuration, tests, and dependencies. Identify what can be called, composed, or extended before designing anything new. Check whether configuration or a small change to an existing responsibility already expresses the required behaviour. ## Escalation Order Climb only as far as the behaviour needs, and stop at the first step that holds: 1. No code at all, because the behaviour is already there or was never asked for. 2. Existing code in this repository: the helper, pattern, or extension point already written. 3. The standard library. 4. A native platform or framework feature. 5. A dependency the project already has. 6. New code, as the smallest thing that satisfies the behaviour. Climb after understanding the problem, not instead of it. The smallest change in the wrong place is a second defect, not a shorter diff. When two options at the same step cost the same, take the one that handles the edge cases: less code does not mean the flimsier algorithm. When a request is more elaborate than the need it names, say what would cover that need with less, and let the requester choose. ## Scope The Mechanism The escalation order says where code may come from. Within a step, take the narrowest mechanism that meets the constraint, and scope it to the case that needs it. One hard case does not set the strategy for its neighbours: unbounded-precision arithmetic belongs in the function whose width is unbounded, not in the other eight; a mutex covers the path that is concurrent, not the package; a cache wraps the call that is expensive, not every call; reflection serves the case whose type is unknown. Read the constraint as written, since "must not wrap" is narrower than "arbitrary precision", and the narrower reading often has a fixed-width answer already in the standard library. For a primitive every caller routes through, per-call cost is part of the contract rather than a tuning detail, because it multiplies by every call site. Settle it once from a measurement, not an assumption. This is not the premature optimization the Avoid list names: that rule excludes work unrelated to the current requirement, and a shared primitive's cost is part of its requirement. ## Domain Shape Name the data and its states before writing logic. Encode the domain in one structure - a state machine, a typed model, a lookup table, a single validated type - rather than repeating the same shape assumption as conditionals across files. Where the language allows it, make the illegal state unrepresentable instead of guarding against it at each call site. This is subtractive. It replaces scattered branches with one authoritative shape. It does not license a new layer or a speculative interface (see Avoid). ## Delivery Workflow Work on one requested item at a time. Treat the specification and its acceptance tests as the source of truth. For each behaviour change: 1. Write the relevant behavioural test first and run it to confirm that it fails for the expected reason. Follow **testing-principles**; do not invent a new test when supported behaviour is unchanged. 2. Implement the smallest change that makes the test pass. 3. Refactor only when the refactoring gate below permits it. 4. Re-run the targeted test, then run all relevant tests, linters, formatters, type checks, and other project quality gates before declaring completion. If a required quality gate cannot run, report that explicitly. Do not claim it passed. For project performance gates or meaningful runtime-cost changes, read [performance gates](references/performance-gates.md). For release preparation or a release PR, read [release checks](references/release-checks.md). ## Root Causes Fix the cause, not the symptom. Reproduce the failure first, then trace it until you can name the line that is wrong. A guard that suppresses a symptom hides the defect and outlives it: a nil check around a value that should never be nil, a retry around a deterministic failure, a widened type, a tolerance loosened until the assertion stops firing. One wrong line can have many callers. When it sits in a shared function, fix it there and check every caller: one correction in the shared function is a smaller change than one per call site, and repairing only the path the report names leaves its siblings broken. Reviewers check declared gaps and limitations as well as the diff. A "known gap" needs evidence: an assumption such as "retry restores the data" cannot dismiss a defect. Distinguish a demonstrated non-defect from a mitigation that leaves an issue unresolved. Fix or route real unresolved issues under [bugfix routing](../bugfix/references/incidental-issues.md), retaining an owner or blocker; listing a limitation alone does not resolve it. ## Prove It Works Verify against the real artifact, not a proxy. "It compiles", a green build alone, a file timestamp, or a summary of what was intended are not evidence. Run the code path and read the actual value. Where the check can be a script, write the script and keep its output, so a reviewer can re-run the same comparison instead of taking your word for it.
From wtsi-hgi/agentskills, MIT.
More from wtsi-hgi/agentskills
- 0.592score
bugfix
wtsi-hgi
Orchestrates standalone or caller-batched bug fixes via implementor and reviewer subagents using TDD.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
orchestrator
wtsi-hgi
Orchestrates implementation, review, and user-path verification of phase plans via subagents.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
final-response
wtsi-hgi
Remove filler, repetition, process narration, fake enthusiasm, and AI-sounding prose from every chat message, and end each one with a "Your next action" line.
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
agent-conduct
wtsi-hgi
Mandatory safety rules for all agents.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
go-conventions
wtsi-hgi
Shared conventions for Go projects.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
go-reviewer
wtsi-hgi
Review Go implementations against spec acceptance tests.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
deliver
wtsi-hgi
Only when explicitly invoked, take the requested change and every resulting branch, including incidental fixes, through PR review and verified user merges.
SkillAFreshness: A★ 1Claude Code +9 - 0.581score
phase-creator
wtsi-hgi
Creates phase plan documents from a spec.md Implementation Order.
SkillAFreshness: A★ 1Claude Code +9 - 0.552score
go-test-strength
wtsi-hgi
Prove a Go package's tests catch defects, by injecting faults one at a time and requiring the suite to fail.
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
code-smells
wtsi-hgi
Named code smell baseline for reviewing changed code, from Fowler's Refactoring chapter 3.
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
frontend-design
wtsi-hgi
Create distinctive, production-grade frontend interfaces that avoid generic AI aesthetics.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
nextjs-fastapi-implementor
wtsi-hgi
Full-stack TDD implementation for Next.js 16 + FastAPI projects.
SkillBFreshness: B★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 22, 2026 (8 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/wtsi-hgi/agentskills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from wtsi-hgi
- 0.592score
bugfix
wtsi-hgi
Orchestrates standalone or caller-batched bug fixes via implementor and reviewer subagents using TDD.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
orchestrator
wtsi-hgi
Orchestrates implementation, review, and user-path verification of phase plans via subagents.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
final-response
wtsi-hgi
Remove filler, repetition, process narration, fake enthusiasm, and AI-sounding prose from every chat message, and end each one with a "Your next action" line.
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
agent-conduct
wtsi-hgi
Mandatory safety rules for all agents.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
go-conventions
wtsi-hgi
Shared conventions for Go projects.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
deliver
wtsi-hgi
Only when explicitly invoked, take the requested change and every resulting branch, including incidental fixes, through PR review and verified user merges.
SkillAFreshness: A★ 1Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get implementation-principles running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
implementation-principles skill. Agent Mart. https://agentmart.dev/skills/wtsi-hgi-implementation-principles (last updated 2026-10-24)