Skip to content
alyn
Matt Pocock

skills

Skills for Real Engineers. Straight from my .agents directory.

$npx skills add mattpocock/skills
Stars
320,842
Installs
33M
Forks
27k
Updated
34 h ago
License
MIT

39 skills in this pack.

97
Matt Pocock

diagnosing-bugs

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.

321k33MCoding
95
Matt Pocock

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

321k33MCoding
95
Matt Pocock

code-review

Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented coding standards?) and Spec (does the code…

321k33MCoding
95
Matt Pocock

improve-codebase-architecture

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

321k33MCoding
95
Matt Pocock

setup-matt-pocock-skills

Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

321k33MCoding
95
Matt Pocock

setup-ts-deep-modules

Wire dependency-cruiser into a TypeScript repo so each package is a deep module, with implementation hidden in subfolders and reachable only through its entry-point files. User-invoked.

321k33MCoding
95
Matt Pocock

software-factory

Shared language for designing a software factory: the tasks it runs and the services it plugs into.

321k33MCoding
95
Matt Pocock

teach

Teach the user a new skill or concept, within this workspace.

321k33MEducation
95
Matt Pocock

triage

Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.

321k33MCoding
95
Matt Pocock

wayfinder

Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination…

321k33MCoding
95
Matt Pocock

writing-for-agents

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

321k33MWriting
94
Matt Pocock

codebase-design

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more…

321k33MCoding
94
Matt Pocock

to-tickets

Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker (edges as text in one file per…

321k33MCoding
94
Matt Pocock

wizard

Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar…

321k33MCoding
94
Matt Pocock

writing-shape

Writing, exploit: shape raw material into an article, paragraph by paragraph.

321k33MWriting
93
Matt Pocock

chief-of-staff

Pursue a long-running goal in a single session by co-ordinating subagents.

321k33MCoding
93
Matt Pocock

git-guardrails-claude-code

Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git…

321k33MCoding
93
Matt Pocock

pr

Use when writing a PR body.

321k33MCoding
93
Matt Pocock

retro

Conduct a retrospective on a coding session.

321k33MCoding
93
Matt Pocock

writing-beats

Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

321k33MWriting
92
Matt Pocock

domain-modeling

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.

321k33MCoding
92
Matt Pocock

scaffold-exercises

Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new…

321k33MCoding
92
Matt Pocock

tdd

Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

321k33MCoding
92
Matt Pocock

to-spec

Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed.

321k33MCoding
92
Matt Pocock

writing-fragments

Writing, explore: mine raw fragments, no structure yet.

321k33MWriting
91
Matt Pocock

grilling

Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.

321k33MCoding
91
Matt Pocock

implement-spec

Implement the result of /to-spec and /to-tickets in code.

321k33MCoding
91
Matt Pocock

loop-me

Grill me about specs for the workflows I want to build, within this workspace.

321k33MCoding
91
Matt Pocock

migrate-to-shoehorn

Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.

321k33MCoding
91
Matt Pocock

prototype

Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

321k33MCoding
91
Matt Pocock

setup-pre-commit

Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or…

321k33MCoding
91
Matt Pocock

to-questionnaire

Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

321k33MCoding
90
Matt Pocock

claude-handoff

Hand the current conversation off to a fresh background agent that picks up the work immediately.

321k33MProductivity
89
Matt Pocock

grill-me

A relentless interview to sharpen a plan or design.

321k33MCoding
89
Matt Pocock

grill-with-docs

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

321k33MCoding
89
Matt Pocock

handoff

Compact the current conversation into a handoff document for another agent to pick up.

321k33MProductivity
89
Matt Pocock

implement

Implement a piece of work based on a spec or set of tickets.

321k33MCoding
89
Matt Pocock

research

Investigate a question against high-trust primary sources and capture the findings as a Markdown file in the repo. Use when the user wants a topic researched, docs or API facts gathered, or…

321k33MCoding
89
Matt Pocock

wait-what

Stop. That last message did not land: re-pitch it.

321k33MCoding

From the README

How to use skills

Skills

Skills For Real Engineers

skills.sh

My agent skills that I use every day to do real engineering - not vibe coding.

Developing real applications is hard. Approaches like GSD, BMAD, and Spec-Kit try to help by owning the process. But while doing so, they take away your control and make bugs in the process hard to resolve.

These skills are designed to be small, easy to adapt, and composable. They work with any model. They're based on decades of engineering experience. Hack around with them. Make them your own. Enjoy.

If you want to keep up with changes to these skills, and any new ones I create, you can join ~60,000 other devs on my newsletter:

Sign Up To The Newsletter

Installation (30-second setup)

A plugin updates itself. skills.sh copies editable files into your project, and you update them by hand. Pick one per agent, because installing both gives you every skill twice.

1. Get the skills

Claude Code
claude plugin install mattpocock-skills@claude-plugins-official

Updates itself by default.

Codex
codex plugin marketplace add mattpocock/skills
codex plugin add mattpocock-skills@mattpocock

Updates itself at startup.

GitHub Copilot (CLI and VS Code)
copilot plugin marketplace add mattpocock/skills
copilot plugin install mattpocock-skills@mattpocock

Then, once, add to ~/.copilot/settings.json:

{
  "extraKnownMarketplaces": {
    "mattpocock": { "source": { "source": "github", "repo": "mattpocock/skills" }, "autoUpdate": true }
  }
}

In VS Code, run Chat: Install Plugin From Source and enter https://github.com/mattpocock/skills. It updates daily.

Gemini CLI (manual updates)
gemini skills install https://github.com/mattpocock/skills.git --path skills/engineering
gemini skills install https://github.com/mattpocock/skills.git --path skills/productivity

Re-run both commands to update.

Any other agent, or editable files (manual updates)
npx skills@latest add mattpocock/skills -a <agent>  # cursor, opencode, devin, windsurf, amp, pi; omit -a to choose

When the installer asks which skills to take, include setup-matt-pocock-skills. To update, run npx skills@latest update, and re-run add to pick up new skills.

2. Run /setup-matt-pocock-skills

In your agent, run it once per repo. It will:

  • Ask you which issue tracker you want to use (GitHub, GitLab, local files, or anything else you describe)
  • Ask you what labels you apply to tickets when you triage them (/triage uses labels)
  • Ask you where you want to save any docs we create

3. Bam - you're ready to go.

Why These Skills Exist

I built these skills as a way to fix common failure modes I see with Claude Code, Codex, and other coding agents.

#1: The Agent Didn't Do What I Want

"No-one knows exactly what they want"

David Thomas & Andrew Hunt, The Pragmatic Programmer

The Problem. The most common failure mode in software development is misalignment. You think the dev knows what you want. Then you see what they've built - and you realize it didn't understand you at all.

This is just the same in the AI age. There is a communication gap between you and the agent. The fix for this is a grilling session - getting the agent to ask you detailed questions about what you're building.

The Fix is to use:

These are my most popular skills. They help you align with the agent before you get started, and think deeply about the change you're making. Use them every time you want to make a change.

#2: The Agent Is Way Too Verbose

With a ubiquitous language, conversations among developers and expressions of the code are all derived from the same domain model.

Eric Evans, Domain-Driven-Design

The Problem: At the start of a project, devs and the people they're building the software for (the domain experts) are usually speaking different languages.

I felt the same tension with my agents. Agents are usually dropped into a project and asked to figure out the jargon as they go. So they use 20 words where 1 will do.

The Fix for this is a shared language. It's a document that helps agents decode the jargon used in the project.

Example

Here's an example glossary (still named CONTEXT.md at that pinned commit, from before the skills renamed the convention), from my course-video-manager repo. Which one is easier to read?

  • BEFORE: "There's a problem when a lesson inside a section of a course is made 'real' (i.e. given a spot in the file system)"
  • AFTER: "There's a problem with the materialization cascade"

This concision pays off session after session.

This is built into /grill-with-docs. It's a grilling session, but that helps you build a shared language with the AI, and document hard-to-explain decisions in ADR's.

It's hard to explain how powerful this is. It might be the single coolest technique in this repo. Try it, and see.

[!TIP] A shared language has many other benefits than reducing verbosity:

  • Variables, functions and files are named consistently, using the shared language
  • As a result, the codebase is easier to navigate for the agent
  • The agent also spends fewer tokens on thinking, because it has access to a more concise language

#3: The Code Doesn't Work

"Always take small, deliberate steps. The rate of feedback is your speed limit. Never take on a task that’s too big."

David Thomas & Andrew Hunt, The Pragmatic Programmer

The Problem: Let's say that you and the agent are aligned on what to build. What happens when the agent still produces crap?

It's time to look at your feedback loops. Without feedback on how the code it produces actually runs, the agent will be flying blind.

The Fix: You need the usual tranche of feedback loops: static types, browser access, and automated tests.

For automated tests, a red-green-refactor loop is critical. This is where the agent writes a failing test first, then fixes the test. This helps give the agent a consistent level of feedback that results in far better code.

I've built a /tdd skill you can slot into any project. It encourages red-green-refactor and gives the agent plenty of guidance on what makes good and bad tests.

For debugging, I've also built a /diagnosing-bugs skill that wraps best debugging practices into a disciplined loop, gated phase by phase.

#4: We Built A Ball Of Mud

"Invest in the design of the system every day."

Kent Beck, Extreme Programming Explained

"The best modules are deep. They allow a lot of functionality to be accessed through a simple interface."

John Ousterhout, A Philosophy Of Software Design

The Problem: Most apps built with agents are complex and hard to change. Because agents can radically speed up coding, they also accelerate software entropy. Codebases get more complex at an unprecedented rate.

The Fix for this is a radical new approach to AI-powered development: caring about the design of the code.

This is built in to every layer of these skills:

  • /to-spec quizzes you about which modules you're touching before creating a spec

And crucially, /improve-codebase-architecture surveys a codebase for deepening opportunities and hands you the candidates. I recommend running it on your codebase once every few days. It is a survey, not a rescue: on a genuinely old codebase it will find real candidates, but it won't untangle the mud for you.

Summary

Software engineering fundamentals matter more than ever. These skills are my best effort at condensing these fundamentals into repeatable practices, to help you ship the best apps of your career. Enjoy.

Reference

These split on one axis: who can invoke them. User-invoked skills are reachable only when you type them (e.g. /grill-me); their job is to orchestrate. Model-invoked skills can be invoked by you or reached for automatically by the agent when the task fits; they hold the reusable discipline. A user-invoked skill may invoke model-invoked skills, but never another user-invoked one.

Engineering

Skills I use daily for code work.

User-invoked

  • ask-matt: Ask which skill or flow fits your situation. A router over the user-invoked skills in this repo.
  • grill-with-docs: Grilling session that also builds your project's domain model, sharpening terminology and updating GLOSSARY.md and ADRs inline.
  • triage: Move issues through a state machine of triage roles.
  • improve-codebase-architecture: Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
  • setup-matt-pocock-skills: Configure this repo for the engineering skills (issue tracker, triage labels, domain doc layout). Run once per repo before using the other engineering skills.
  • to-spec: Turn the current conversation into a spec and publish it to the issue tracker. No interview, just synthesizes what you've already discussed.
  • to-tickets: Break any plan, spec, or conversation into a set of tracer-bullet tickets, each declaring its blocking edges, written as text in a local file, or as native blocking links on a real tracker.
  • implement: Build the work described by a spec or set of tickets, driving /tdd at pre-agreed seams and closing out with /code-review before committing.
  • implement-spec: Implement a whole spec on one integration branch. Works the tickets as a task graph, running implementer subagents across the ready frontier for maximum concurrency, then closes out with /code-review.
  • wayfinder: Plan a huge chunk of work, more than one agent session can hold, as a shared map of decision tickets on the issue tracker, and resolve them one at a time until the way to the destination is clear.
  • retro: Suggest improvements to the coding agent's environment (navigation, automated checks, coding standards, steering files, tooling) after a session, most severe first.

Model-invoked

  • prototype: Build a throwaway prototype to answer a design question, either a single shareable HTML file for state/logic questions, or several radically different UI variations toggleable from one route.
  • diagnosing-bugs: Disciplined diagnosis loop for hard bugs and performance regressions: build a feedback loop that goes red on this bug → minimise → hypothesise → instrument → fix → regression-test.
  • research: Investigate a question against high-trust primary sources and capture the findings as a cited Markdown file in the repo, run as a background agent.
  • tdd: Test-driven development with a red-green-refactor loop. Builds features or fixes bugs one vertical slice at a time.
  • domain-modeling: Actively build and sharpen a project's domain model: challenge terms against the glossary, stress-test with edge-case scenarios, and update GLOSSARY.md and ADRs inline.
  • codebase-design: Shared discipline and vocabulary for designing deep modules: a lot of behaviour behind a small interface, placed at a clean seam, testable through that interface.
  • code-review: Two-axis review of the diff since a fixed point: Standards (does it follow the repo's coding standards, plus a Fowler smell baseline?) and Spec (does it faithfully implement the originating issue/spec?), run as parallel sub-agents so neither pollutes the other.
  • pr: The shape a pull request body should take: a summary as the smallest visual that makes the change clear, before/after evidence that it works, and a merge-danger call (one-way or two-way door, plus blast radius).
  • wizard: Generate an interactive bash wizard that walks a human through steps only they can perform: provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover.

Productivity

General workflow tools, not code-specific.

User-invoked

  • grill-me: Get relentlessly interviewed about a plan or design until every branch of the design tree is resolved.
  • handoff: Compact the current conversation into a handoff document so another agent can continue the work.
  • teach: Teach the user a new skill or concept over multiple sessions, using the current directory as a stateful teaching workspace.
  • to-questionnaire: Turn a decision you can't answer alone into a Markdown questionnaire for the one person who can, filled in async, or together over a meeting. It grills you about the send (who it's for, what you need back), not the subject.
  • wait-what: Fire this the moment a message doesn't land. The agent re-pitches it with the context you're missing, in plain English, using your GLOSSARY.md vocabulary.

Model-invoked

  • grilling: Interview the user relentlessly about a plan, decision, or idea until every branch of the design tree is resolved. The reusable interview primitive behind grill-me, grill-with-docs, triage, wayfinder and improve-codebase-architecture.
  • writing-for-agents: Writing documents for agents: skills, AGENTS.md/CLAUDE.md, and any doc an agent reaches by a pointer.

Questions

What is mattpocock/skills?

Skills for Real Engineers. Straight from my .agents directory.

How do I install skills?

Run "npx skills add mattpocock/skills" and choose the skills you want. Many packs also document their own install path (for example a Claude Code plugin marketplace) in the README below.

How many skills are in skills?

39 SKILL.md skills. Alyn lists 39 of them with their own pages.