Portable agent skills for building real full-stack products with coding agents.
FeatureKit is an open-source, framework-agnostic skill harness, released under the MIT License. It follows the Matt Pocock-style pattern: small composable skills, installed with the open skills CLI, then run from Codex, Claude Code, OpenCode, generic agents, or local LLMs.
Current release: see VERSION and CHANGELOG.md.
The problem. Coding agents write code fast, but on their own they often:
- start before the feature is clear;
- drift out of scope;
- say "done" without proof;
- forget security;
- spend expensive-model tokens on easy work.
The idea. FeatureKit is a set of plain-Markdown skills you install into your product repo. They give any coding agent (Codex, Claude Code, OpenCode, or a local model) the disciplined workflow a careful senior engineer follows. There is no new CLI, server, or framework to adopt, and FeatureKit never picks your stack.
How it works. You describe a feature in plain words. The agent takes it through the same steps every time:
idea → interview → written plan → small slices → your approval
→ build (tests first) → prove it works → right-sized review → ship or hand off
- Clarify. The agent interviews you one decision at a time, grounded in your repo's docs, and explains what each choice means.
- Plan. Your answers become a written plan or PRD, split into small vertical slices. No production code is written until you approve the plan. A repo can opt in at setup to let a small fix you ask for directly skip the plan, within limits it records.
- Build. One slice at a time, with tests first where they fit and security guidance applied automatically. The agent follows your repo's conventions and architecture decisions.
- Prove. Every acceptance criterion is checked against real evidence. A passing build is not proof, and missing device or platform checks are reported as gaps, not glossed over.
- Review. The review is sized to the risk. A small docs change needs checks only, every code change gets at least one review, and security changes always get a deep review.
- Hand off. Work can pause or continue in a fresh session without replaying the whole conversation.
Guardrails that stay on:
- It asks you before building.
- Security floors are never lowered.
- Scope stays exactly what you approved.
- Anything unknown is reported as unknown.
- It makes no branches, commits, or pushes unless you ask.
Smart about cost. The agent uses a plain tool when one is enough and works directly by default. Routine work runs on the host's cheaper model and only hard work on the strongest. In trials, delegating a small task from an expensive session to a cheaper worker saved nothing, so FeatureKit runs whole slices at the needed level instead. Small code changes are reviewed at the cheapest level that fits, and a failed attempt hands its evidence to the stronger model instead of restarting (29% cheaper escalations in three paired trials). An eval suite compares FeatureKit with a bare agent on real development scenarios.
Getting started takes two steps: install the skills, then run /setup-featurekit once (or ask the agent to set up FeatureKit). After that, just ask for features.
Run this in the product repo where you want to use FeatureKit, such as your app's root directory.
npx skills@latest add qorsmond/FeatureKit \
-a codex -a claude-code -a opencode --skill '*' -yThis installs the complete skill set, including optional tooling skills. Remove any -a options for agents you do not use. For a smaller selection or installation from a local FeatureKit checkout, see Install.
Open a fresh coding-agent session in that same product repo so it loads the installed skills, then initialize it once:
/setup-featurekit
Setup previews and updates the existing AGENTS.md or equivalent instruction file and records repo conventions under docs/agents/. It saves session bootstrap, automatic orchestration and live routing feedback. The orchestrator chooses available worker models and effort; no model roster or repeated orchestration prompt is required. Future sessions need only your normal request.
Setup also records where your repo keeps ADRs, handoffs, prototypes and its glossary, and how it names, templates and labels ADRs. The skills then follow your conventions instead of their defaults (docs/adr/, docs/handoff/, .scratch/prototypes/, CONTEXT.md). Where the repo already documents a topic, setup links to it instead of restating it. For large or unfamiliar codebases it can also enable an optional local knowledge index. The index hands the agent a symbol's callers and tests and the decisions that govern a file, with no services or model calls.
A raw feature request starts the design-tree interview automatically. You can also invoke /grill-with-docs directly. When you are unsure which skill fits, ask explicitly:
/ask-featurekit
For a raw feature, /ask-featurekit begins the interview instead of returning only a route. Interview questions carry their own plain-language context and consequences, and uncertainty is explained and re-asked rather than inferred. For other work it routes you through planning, security, PRDs, slices, implementation, test verification, review, prototyping, debugging, and handoff.
Run the same full-install command from the product repo after a FeatureKit release:
npx skills@latest add qorsmond/FeatureKit \
-a codex -a claude-code -a opencode --skill '*' -yKeep the -a selections appropriate for your agents. Re-running add refreshes installed FeatureKit skills and includes newly added ones. npx skills@latest update updates existing skill entries; use the full add command above to pick up the complete current set.
Start a fresh coding-agent session in the same repo, then run:
/setup-featurekit
Refresh this repo's FeatureKit setup to the installed release. Update missing
or outdated FeatureKit instructions and affected docs/agents files. Preserve
existing project rules and settled choices; do not repeat the full setup
interview or add fixed model selections. Show the focused changes before writing.
Both steps matter: installation updates the skills, while setup refreshes the instructions saved in the product repo. Upgrading from before 0.13.0, the refresh records your repo's ADR, handoff, prototype and glossary locations for the skills to follow. Upgrading from before 0.14.0, it offers the small-fix exemption and project-level knowledge-index hooks for skills installs. Setup updates existing blocks in place; repeated runs should make no unnecessary changes or duplicate sections. Use this flow after upgrades; normal work sessions load the saved policy automatically.
Confirm the version below. To see delegation in action after setup, see Start an orchestrated session.
Project installs copy FeatureKit skills into .agents/skills/. Each installed SKILL.md includes metadata.featurekit-version, so consumers can confirm the release they received:
rg "featurekit-version" .agents/skillsAll FeatureKit entries should match the installed release's VERSION. After upgrading, confirm that orchestrate-work and validate-feature are present too.
- Start with
/setup-featurekitonce per product repo. - Let the setup-written repo instructions load
using-featurekitand orchestration in each session. - Use
/ask-featurekitwhen you are unsure which flow fits; it also begins interviewing raw features immediately. - Use
/grill-with-docswhen you want to start the same design-tree interview explicitly against product context. - Use
/record-adrwhen a durable architectural decision is made or changed. - Use
/to-prdfor work that needs a durable spec. - Use
/to-slicesto split a PRD into small vertical implementation slices. - Review each written plan, PRD, or slice and use its final approval question before implementation.
- After an implementation-ready artifact is approved, continue focused work in the current task. For substantial work only, choose a fresh implementation task on the current checkout and branch, the current task, or stop after planning; use
/implementfor one approved slice or/execute-slicesfor approved ordered slices. - Let
secure-design,secure-code,secure-api, andsecure-deployapply automatically when work touches their security surfaces. - Use
verify-testswhen generated or changed tests need deeper proof. - Use
security-reviewfor focused security review andreview-changebefore human review. - Use
/handoffwhen a session needs to pause or continue elsewhere.
Within these workflows, orchestrate-work chooses a direct tool, the current agent, or a bounded worker by capability and risk, and validate-feature checks acceptance evidence in the relevant runtime, including mobile and hardware gaps. Optional repo restrictions or explicit overrides live in docs/agents/orchestration.md; no model roster is required, and single-model use still works. Plan files carry each slice's status, evidence and notes, so a new session resumes where the last one stopped without repeating its investigation. See Orchestration.
For large or unfamiliar codebases, setup can enable a local knowledge index. It is a derived .kx/ folder, ignored by git, built by one standard-library script with no services, model calls or dependencies. It covers Python code and Markdown/RST docs, ADRs and lessons, including docs not yet committed. Two hooks deliver it without the agent having to remember:
- a short pointer when your request names code;
- a symbol's callers, tests and governing decisions when the agent searches for it;
- the decisions that govern a file when the agent reads it.
A decision links to the code it governs through sources frontmatter, or by naming a Python file in backticks by path or command. Superseded and stale knowledge is flagged or hidden, and the source files stay authoritative.
In trials on large Python repositories, the hooks reached the agent in 13 of 13 runs, against 2 of 15 when a skill instructed it. Cost per run fell 18% on four impact-analysis tasks. The gain in correctness was within run-to-run noise. TypeScript, Swift and other languages are not indexed. See Setup for enabling it and the hooks for skills installs, Working With Agents for what the agent sees, and Troubleshooting.
FeatureKit improves through two loops, and both need evidence. A single unexplained run supports nothing.
- In your product repo. A check may fail for a reason a durable control would have prevented, the same correction may be needed twice, or project guidance may prove wrong. The agent then fixes the cause once, in the cheapest durable place. That is a test or check first, then the authoritative source (
docs/agents/, an ADR, or the agent instructions). Only a verified fact with no better home becomes a lesson indocs/agents/lessons.md, with its cue, evidence and confidence. A lesson never lowers a safety or approval floor. See theusing-featurekitrule and Working With Agents. - Back into FeatureKit. When FeatureKit's own workflow caused the problem, the agent never edits the installed skills. It records a project-neutral proposal in
docs/agents/featurekit-feedback.md. - In FeatureKit itself. Shared behaviour changes only from evidence: a failing eval case, a recorded trial, or a feedback entry. Each change is tried on the affected eval cases against the current release and kept only if correctness is no worse. Each changelog entry is marked eval-backed or a hypothesis. For example, the 0.14.0 small-fix exemption first doubled the plan-gate case's cost, because the agent searched the repo for an exemption. The eval caught it, and the reworded rule brought the cost back down. See Improving FeatureKit.
FeatureKit also includes misc skills for repo guardrails and specialized setup:
git-guardrails-claude-codesetup-pre-commitscaffold-exercisesmigrate-to-shoehorn
These are useful when a product repo needs them, but they are not part of the default idea-to-ship flow.
The detailed usage guide is the source of truth:
- Overview
- Install
- Setup
- Main Flow
- Working With Agents
- Local LLMs
- End-to-End Example
- Troubleshooting
- Security Workflow
- Orchestration
For Gemma or another local model, use prompts/local-llm-featurekit.md. Paste that prompt, then paste this repo's AGENTS.md, the target product repo's context, and the relevant SKILL.md.
FeatureKit is released under the MIT License. Attribution and the licences of vendored test fixtures are in third-party-notices.md.