Project skills: stop your coding agent re-learning the project every session
Every SpecGraph project now hands its coding agent a project context derived from the spec, plus implementation skills that read it over MCP before writing a line of code.
SpecGraph team
Every coding agent session starts with amnesia. The agent opens the repo, reads a few files, guesses at the conventions and gets to work. Tomorrow it does the same thing again. The team pays for that rediscovery in tokens, and pays again in review when the guesses are wrong: a query that forgot tenant scoping, a component that ignored the design system, a test written in the framework the project stopped using last quarter.
A sealed SpecGraph spec already knows the answers. Project skills are how we hand them over in a form the agent actually uses.
What ships with every project
When a project reaches handoff, SpecGraph generates the agent-facing layer from the spec itself. None of it is a generic template with the project name pasted in.
project-context.md: the critical implementation rules for this project. Each rule comes with the reason it exists, a correct example and a wrong one. Rules only appear when the project's facts make them load-bearing. An organisation-scoping rule shows up when the auth model is multi-tenant; frontend rules are dropped for a headless service.CLAUDE.md: the entry point the agent reads first. It describes the project, the pack layout, and the coding agent the team named at intake: Claude Code, Codex or GitHub Copilot.- Implementation skills:
/sg-dev,/sg-reviewand/sg-status. On first connect, the agent callsinstall_skillsover MCP and writes them into the repo.
Skills that read before they write
The skills are short on purpose. They don't carry the project in their own text. They carry the procedure, and fetch the project over MCP at run time. /sg-dev starts by calling read_project_context, then pulls the next ready-for-dev story, the relevant architecture and the requirements the story implements. Only then does it write code. It claims the story before starting, reports commits and test results as it goes, and marks the story done with a record of what it did.
When something is genuinely unclear, the skill calls ask_question and waits, instead of guessing. The question lands with the team in SpecGraph.
/sg-review checks the last completed story against its acceptance criteria. /sg-status shows sprint progress without anyone opening a dashboard.
Your agent shouldn't have to rediscover your project every morning. The spec should tell it, in the first second of the session.
Why this beats a longer prompt
The obvious alternative is a bigger system prompt or a hand-written rules file. Teams try it, and it works for a while. Then the architecture changes, the rules file doesn't, and the agent follows instructions that stopped being true.
Project skills avoid that drift because the context is derived, not written. Change the auth model in the Security phase, and the rules in project-context.md change with it the next time the pack is generated. Because the skills read context over MCP instead of embedding it, a session sees the current pack, not a copy from last month.
It also keeps the agent's attention where it belongs. A rule list built from the project's actual stack is shorter than a generic best-practice list, and every line in it applies.
Not tied to one agent
Teams rarely standardise on a single tool. The intake question about which coding agent you use exists so the generated guide can name it directly. The context itself is plain Markdown served over MCP, so any agent that speaks MCP can read the same rules and the same stories. The slash commands are a Claude Code convenience. The contract underneath them isn't.
What you can do this week
- Look at the last three review comments your team left on agent-written code. If any of them restate a project convention, that convention belongs in project context, not in a review thread.
- Connect your agent to a SpecGraph project over MCP and run
install_skills. Then ask it to implement one small story with/sg-devand watch what it reads first. - Retire any hand-maintained rules file that duplicates what the spec already says. Two sources of truth is one too many.
Agents learn fast and forget everything overnight. Give them the project at the start of every session, and they stop paying to relearn it.
- agents
- skills
- mcp
- claude-code
- bmad