Skip to content

About

Matt Pocock's engineering flow + Addy Osmani's specialists, one owner per job, with a git guard. Installs from GitHub into Claude Code, Codex, Cursor, Kimi Code and opencode, no marketplace needed.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

aih-extensions

A curated, non-conflicting set of agent skills: Matt Pocock's development lifecycle, Addy Osmani's specialists for what it leaves out, and git guardrails. Direct installation from GitHub supports Claude Code, Codex, Cursor, Kimi Code and opencode. A separate Claude Code marketplace route is also supported; use one route at a time.

License: MIT

Quickstart

Requires Node.js 22 or later and git.

git clone https://github.com/samartomar/aih-extensions.git
cd aih-extensions
node scripts/setup.mjs install          # prints the plan, changes nothing
node scripts/setup.mjs install --yes    # installs for every tool it finds

Then:

  1. Start a new session in each tool.
  2. In Codex, accept the new hooks once when it asks at startup (or review them with /hooks). Until then Codex skips them.
  3. In each repo, run /setup-matt-pocock-skills (issue tracker, triage labels, docs location) and /install-commit-gate.

node scripts/setup.mjs status shows what is installed and from which commit. --tools claude,codex limits the install to the tools you name.

For a bounded Codex file-delivery check, install --tools codex --codex-skills ask-sam selects one shipped skill folder name; comma-separated names select a subset. The preview identifies each selected source and destination. This still installs Codex's references, agents, Guide and selected hooks. Updates replace the previous direct installation with the newly selected plan. Codex retains its current ~/.codex/skills location (or CODEX_HOME/skills). Shared delivery remains disabled pending native location/precedence qualification; an existing same-name skill in ~/.agents/skills stops installation without claiming or removing that source. See the qualification boundary.

Ask AIH Guide 🧭

Guidance for diagnosing and recovering AI CLI setup.

Read or save the self-contained manual before setup fails. Direct installation also saves it at ~/.aih-extensions/guide/MANUAL.md. It carries the same recovery loop as the authored conversational agent, including offline/no-tool steps, scoped manual fixes, managed-setting handoff and honest verification. It reuses installed Core/Harness operations when applicable.

Claude Code selects claude --agent aih-guide; Kimi Code selects kimi --agent aih-guide in a new session; OpenCode selects opencode run --agent aih-guide. The Claude plugin entry is aih-extensions:aih-guide. Confirm discovery on your installed version; recorded evidence distinguishes native selection from successful recovery. Codex and Cursor use the saved manual: explicitly ask the current agent to read it, or paste it into a working conversation. Each client targets its applicable Windows/macOS/Linux surfaces; installation alone does not establish native recovery across that matrix.

The Guide follows the Extensions release version. Its manifest records source commit and exact SHA-256 bytes; there is no separate Guide version. The compass SVG accompanies the manual; native icon rendering is not claimed. Optional Catalog delivery and a Core-doc pointer have separate release owners and are not claimed available here.

Updates preserve a deliberate git-guard removal. install --no-git-guard --yes explicitly disables this guard while keeping the other Extensions hooks and personal configuration. Uninstall removes the Guide files it recorded and preserves unrelated content; unowned destination collisions stop installation.

What's inside

Running Matt's and Addy's collections side by side gives two skills each for interviews, specs, TDD, debugging, code review and ADRs. Both activate on the same prompts and disagree on formats: where ADRs go, how a review is laid out, when to refactor. This repo keeps Matt's set as he ships it and takes from Addy's only what Matt's set lacks.

Layer Source Contents
Core lifecycle mattpocock/skills, installed from GitHub at a pinned commit Define, spec, tickets, implement test-first, review; debugging, domain modelling, module design
On-demand specialists addyosmani/agent-skills, vendored at a pinned commit Security, performance, observability, API contracts, docs, CI/CD, migrations, frontend; /ship with three reviewer agents
Safety layer this repo git-guard before shell commands, a commit gate in git, skill-guard, a routing note at session start

Core lifecycle (Matt Pocock)

/grill-with-docs  β†’  /to-spec  β†’  /to-tickets  β†’  /implement  β†’  /code-review  β†’   /retro
 agree on terms      write it     slice it        test-first     standards + spec  improve the setup

Where the project's workflow permits it, /implement-spec builds a whole spec on one integration branch, with subagents working the ready tickets in parallel. Bugs go to /diagnosing-bugs, module shape to /codebase-design. When unsure, type /ask-matt. The installed revision's skills are described in Matt's reference.

On-demand specialists (Addy Osmani)

Auto skills can start when the task fits. The others require an explicit user request. The small dated evaluation supports only its stated cases; several specialists were not evaluated. Promotions need fresh evidence.

Skill Auto Use it for
/observability-and-instrumentation yes Logs, metrics, traces and alerts for anything that runs in production
/shipping-and-launch yes Pre-launch checklist, staged rollout, rollback plan
/ship Go/no-go: code, security and test reviewers in parallel, one decision
/webperf Web performance audit (Core Web Vitals)
/security-and-hardening Auth, untrusted input, secrets, personal data
/performance-optimization Fix and budget a slowdown that /diagnosing-bugs located
/api-and-interface-design REST, GraphQL or RPC contracts and versioning
/documentation-and-adrs README, API reference, changelog (ADRs stay with Matt's /domain-modeling)
/code-simplification Clearer code, same behaviour (replaces Claude Code's built-in /simplify)
/frontend-ui-engineering Production UI, accessibility, responsive layout
/ci-cd-and-automation Pipelines and quality gates
/deprecation-and-migration Retiring code, migrating users or schemas
/doubt-driven-development Adversarial second look at one high-stakes decision
/source-driven-development Framework code checked against current official docs
/idea-refine Many variants of a raw idea, before /grill-with-docs
/browser-testing-with-devtools Real-browser checks (needs the chrome-devtools MCP server)
/constraint-driven-development Once per repo: write CONSTRAINTS.md
/git-workflow-and-versioning Releases, semver, changelogs, atomic commits
/setup-pre-commit Once per JS/TS repo: Husky, lint-staged, typecheck and tests (from Matt's misc skills)

The specialists draw on seven checklists in references/ (definition of done, testing, security, performance, accessibility, observability, orchestration).

One specialist is this repo's own. /line-edit tightens a finished document's sentences, links and Markdown, and checks that every fact is still there. Expect about the same length: what could be cut comes back as proposals for you to decide. Its line-check.mjs compares the document before and after. It runs only when typed.

Safety layer (this repo)

  • git-guard checks each shell command before the agent runs it. It denies force pushes and remote deletes, reset --hard, clean -f, forced branch moves and deletes, checkout/switch/restore that discard work, stash clear, commit --no-verify and -c core.hooksPath=…, and asks before a push to main, master or the remote's default branch (as GitHub reports it), or when it can't tell which branch a push updates. Pushes to other branches go through. It is a guardrail against common agent mistakes, not a sandbox: see Limits.
  • The commit gate (/install-commit-gate, once per repo) is a git commit-msg hook, so it covers commits from any tool or terminal. It blocks conflict markers and leftover [DEBUG-…] tags, and new suppressions, skipped tests or removed assertions unless the message says [floor-ok: <reason>].
  • skill-guard keeps /code-review and /grilling out of sub-agents, where they can't start their own sub-agents or interview you.
  • The routing note at session start points to /ask-matt and /ask-sam, the router for this add-on.

For an explicitly authorized bootstrap, a temporary local approval can allow normal pushes to one protected branch. Create ~/.aih-extensions/push-approvals.json (AIH_EXTENSIONS_HOME when set):

{
  "version": 1,
  "protectedPushes": [
    { "url": "https://github.com/OWNER/REPOSITORY.git", "branches": ["main"] }
  ]
}

Use the exact URL reported by git remote get-url --push --all origin; every push destination must match an approval. Use a single direct Git command with a named remote and one fully qualified branch destination, such as git push origin HEAD:refs/heads/main. Source-only or unqualified refspecs, configured remote push mappings, compound commands (including directory changes), and nested shells retain their normal checks, as do destructive commands, force pushes, tags, bare or multi-branch pushes, and command-local Git configuration. Missing or malformed approval files grant no exception. Keep this file local; remove its entry when the authorized work ends. Reinstalling or uninstalling the direct installation clears temporary approvals with the installation directory.

Calling a skill

Claude Code, Cursor, opencode Codex Kimi Code
/name $name /skill:name

This README writes every skill as /name.

Supported tools

Each tool gets its own copy of the skills, loads each skill once, and runs git-guard through its own hook system. Tools differ in what happens when the guard wants to ask, and when the guard itself can't run:

Tool Skills from Guard wired in as A push to main (guard asks) If the guard can't run
Claude Code ~/.claude/skills hook in settings.json asks you command runs, error shown
Cursor ~/.claude, through "Include Third-Party Plugins, Skills, and Other Configs" (on by default) Claude's hook, imported by Cursor asks you command refused
Codex ~/.codex/skills hook in ~/.codex/hooks.json refused, with a note to ask you an untrusted hook is skipped: command runs
Kimi Code ~/.kimi-code/skills [[hooks]] block in config.toml refused, with a note to ask you command runs
opencode (for example with DeepSeek) ~/.claude/skills (its own folder without Claude Code) plugin in plugins/ refused, with a note to ask you plugin not loaded: command runs

Every row was checked live on Windows 11 on 2026-09-27. Versions, results and per-tool details: docs/tools.md.

Uninstall

node scripts/setup.mjs uninstall --all --yes

Removes every file and config entry the install added, for every tool, and nothing else. The edited config files (settings.json, hooks.json, config.toml, opencode.json) come back byte for byte; each was backed up before the first edit. node scripts/setup.mjs remove-gate <repo> --yes takes the commit gate out of a repo.

Limits

  • git-guard reads command text; it does not parse shell like a shell does. It unwraps bash -c, pwsh -Command, eval, $(…) and line continuations, but a script file, an alias or a command assembled at runtime gets past it.
  • The commit gate uses regular expressions on the staged diff, and people can skip it with git commit --no-verify (an enabled git-guard can block that agent command).
  • Coverage differs by tool. skill-guard is Claude Code only, Kimi Code gets no session-start note, and /ship and /webperf exist in Claude Code, Cursor and opencode only.
  • Start Cursor's CLI from PowerShell, cmd or Windows Terminal. Started from Git Bash, it runs hooks through the wrong shell and refuses every shell command, whatever the hook.
  • Updates are reviewed, not automatic. Every 3 days a GitHub workflow checks both upstreams; when either moved, it re-vendors and tests on a branch and opens an issue for the maintainer (docs/maintaining.md). On your machine, run install again to move to newer pins.

Claude Code plugin route

For Claude Code alone, node scripts/setup.mjs install --marketplace --yes installs Matt's official plugin and this repo as a plugin instead, so Matt's skills update themselves. Organizations can disable plugin marketplaces, which is why the default route doesn't use them. Installing one route removes the other.

Documentation

Contributing

Issues and pull requests are welcome. Before opening a pull request, run npm run vendor, npm test and npm run validate; these deterministic checks also run in CI. The maintaining guide explains the checks, when live tool verification applies, and the separate advisory model measurements for prompt-loaded changes.

Credits

License

MIT. Vendored material keeps its upstream MIT licenses: see NOTICE.md and licenses/.

About

Matt Pocock's engineering flow + Addy Osmani's specialists, one owner per job, with a git guard. Installs from GitHub into Claude Code, Codex, Cursor, Kimi Code and opencode, no marketplace needed.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages