New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

ai-workflow-kit

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ai-workflow-kit

Skills, agents & hooks for Claude Code, Cursor, GitHub Copilot, Google Antigravity, and OpenAI Codex

Source
npmnpm
Version
2.5.0
Version published
Maintainers
1
Created
Source

AI Workflow Kit

AI Workflow Kit

Skills, agents, and hooks for working with AI coding tools consistently and professionally. Works with Claude Code, Cursor, GitHub Copilot, Google Antigravity, and OpenAI Codex.

Installation

npx ai-workflow-kit

Or pin a version as a dev dependency (it's a dev tool, not a runtime dependency):

npm i -D ai-workflow-kit@2.5.0
npx ai-workflow-kit

Restart your AI tool. You'll have /ak:api, /ak:commit, /ak:debug, /ak:docs, /ak:execute, /ak:frontend, /ak:handoff, /ak:help, /ak:memory, /ak:plan, /ak:pr, /ak:refactor, /ak:review, /ak:setup, /ak:test, /ak:vibe-audit available — plus 5 automatic hooks.

npx ai-workflow-kit --global   # install into ~/.claude/ — all projects (default)
npx ai-workflow-kit --local    # install into .claude/ — this project only
npx ai-workflow-kit --skills   # skills and agents only
npx ai-workflow-kit --hooks    # hooks only
npx ai-workflow-kit --yes      # no confirmations
npx ai-workflow-kit --list     # see what would be installed
npx ai-workflow-kit --uninstall

Running a plan

/ak:plan writes specs/<slug>/plan.md with a checkbox per step, each carrying the command that proves it done. The verify subcommand runs those commands and ticks a box only when its command exits 0, so what the file records is what was demonstrated rather than what was claimed:

npx ai-workflow-kit verify <slug>            # run the next unchecked step
npx ai-workflow-kit verify <slug> --all      # keep going until one fails
npx ai-workflow-kit verify <slug> --recheck  # re-run ticked steps, catch regressions
npx ai-workflow-kit verify <slug> --dry-run  # print the commands, run nothing

With no slug it picks the only plan that has work left, and refuses to guess if several do. It prompts before each command unless you pass --yes.

The commands come from a markdown file in your working tree. A specs/ directory from a repo you don't trust can run anything your shell can — read a plan before verifying it, the same as any script.

Running an SDD feature

The same engine drives Spec-Driven Development. When a spec tool (such as sdd-creator) has generated specs/<slug>/spec.md + plan.md + tasks.md, verify prefers tasks.md — the SDD execution artifact — and the division of labor is: the SDD tool owns Understand → Spec → Plan → Tasks; this kit runs Task → Verify → Fix → Review → Final Verify → PR.

npx ai-workflow-kit verify <slug>            # next unchecked task in tasks.md
npx ai-workflow-kit verify <slug> --final    # every task's Verify + the global checks from .ak/config.md
npx ai-workflow-kit verify <slug> --plan     # force plan.md when both files exist

A task is machine-checkable when it carries the same grammar plan steps use — one line, backticks required:

- [ ] 🟢 **Implement vote toggle** — files: `src/votes/service.ts`. Criterion: `spec.md §3.2 AC-03`.
      Verify: `npm test -- votes`

Tasks without a Verify: line are reported as unverifiable and never ticked. --final is read-only: it re-runs every task's Verify (catching regressions in ticked tasks), then the Test / Lint / Typecheck / Build / E2E commands recorded under ## Commands in .ak/config.md, and prints a summary that ends in Result: PASS or FAIL. The /ak:execute skill drives this loop one task at a time.

Prioritizing a review

The risk subcommand ranks the changed files by churn and fix history from git — the two strongest deterministic predictors of where defects cluster (Nagappan & Ball, 2005; Kim et al., 2007). No LLM: one git log, aggregated per file. /ak:review runs it to decide where review depth goes first.

npx ai-workflow-kit risk                     # score the files changed against the base branch
npx ai-workflow-kit risk src/auth.ts         # score these files instead of the diff
npx ai-workflow-kit risk --window 12m --json # wider history window, machine-readable output

Each file gets HIGH / MEDIUM / low from its commits, fix-commits, churn and author count — or new when it has no history in the window, which means unknown risk, not low. The signal orders the review; it is never itself a finding, and sparse history is reported as a weak signal rather than a confident low.

Or manually:

cp -r skills/* ~/.claude/skills/
cp -r agents/* ~/.claude/skills/
cp -r hooks/*.sh ~/.claude/hooks/
chmod +x ~/.claude/hooks/*.sh

Structure

ai-workflow-kit/
├── CLAUDE.md                        # Instructions for Claude Code
├── GEMINI.md                        # Instructions for Google Antigravity
├── AGENTS.md                        # Cross-tool rules (all AI tools)
├── .cursorrules                     # Rules for Cursor
├── .github/
│   └── copilot-instructions.md     # Instructions for GitHub Copilot
├── .out-of-scope/                  # Features declined on design grounds, with reasoning
├── bin/
│   ├── cli.js                      # The npx installer + `verify` / `risk` dispatch
│   ├── plan-verify.js              # The verify engine — plan.md + tasks.md, --recheck, --final
│   └── risk.js                     # The churn / fix-history risk signal behind `risk`
├── src/
│   └── skills/                     # Hand-written skill sources — the three distributions are generated from here
├── docs/
│   ├── authoring-skills.md         # Spec fields, build pipeline, and the gates CI enforces
│   └── skills/                     # One human-facing page per skill
├── evals/                          # Deterministic tests + LLM-graded skill evals
├── antigravity-skills/
│   ├── help/SKILL.md               # @help — routes a task to the skill that fits
│   ├── setup/SKILL.md              # @setup — records repo conventions in .ak/config.md
│   ├── commit/SKILL.md             # @commit — generates semantic commit messages
│   ├── pr/SKILL.md                 # @pr — creates PRs with full description
│   ├── review/SKILL.md             # @review — reviews code with real criteria
│   ├── plan/SKILL.md               # @plan — plans before executing
│   ├── execute/SKILL.md            # @execute — works an SDD task list with proof
│   ├── debug/SKILL.md              # @debug — structured debugging workflow
│   ├── vibe-audit/SKILL.md         # @vibe-audit — audits vibe-coded apps
│   ├── frontend/SKILL.md           # @frontend — generates UI components
│   ├── api/SKILL.md                # @api — generates endpoints with validation
│   ├── test/SKILL.md               # @test — writes behavior-driven tests
│   ├── refactor/SKILL.md           # @refactor — improves code without breaking anything
│   └── docs/SKILL.md               # @docs — JSDoc, README, ADR
├── codex-prompts/
│   ├── ak-help.md                  # /ak-help — routes a task to the skill that fits
│   ├── ak-setup.md                 # /ak-setup — records repo conventions in .ak/config.md
│   ├── ak-commit.md                # /ak-commit — generates semantic commit messages
│   ├── ak-pr.md                    # /ak-pr — creates PRs with full description
│   ├── ak-review.md                # /ak-review — reviews code with real engineering criteria
│   ├── ak-plan.md                  # /ak-plan — plans before executing
│   ├── ak-execute.md               # /ak-execute — works an SDD task list with proof
│   ├── ak-debug.md                 # /ak-debug — structured debugging workflow
│   ├── ak-vibe-audit.md            # /ak-vibe-audit — audits vibe-coded apps
│   ├── ak-handoff.md               # /ak-handoff — compacts the session for a fresh agent
│   └── ak-memory.md                # /ak-memory — save / recall / clean project memory
├── skills/
│   ├── help/SKILL.md               # /ak:help — routes a task to the skill that fits
│   ├── setup/SKILL.md              # /ak:setup — records repo conventions in .ak/config.md
│   ├── commit/SKILL.md             # /ak:commit — generates semantic commit messages
│   ├── pr/SKILL.md                 # /ak:pr — creates PRs with full description
│   ├── review/SKILL.md             # /ak:review — reviews code with real engineering criteria
│   ├── plan/SKILL.md               # /ak:plan — plans before executing
│   ├── execute/SKILL.md            # /ak:execute — works an SDD task list with proof
│   ├── debug/SKILL.md              # /ak:debug — structured debugging workflow
│   ├── vibe-audit/SKILL.md         # /ak:vibe-audit — audits vibe-coded apps
│   ├── handoff/SKILL.md            # /ak:handoff — compacts the session for a fresh agent
│   └── memory/SKILL.md             # /ak:memory — save / recall / clean project memory
├── agents/
│   ├── frontend/AGENT.md           # /ak:frontend — generates UI components
│   ├── api/AGENT.md                # /ak:api — generates endpoints with validation
│   ├── test/AGENT.md               # /ak:test — writes behavior-driven tests
│   ├── refactor/AGENT.md           # /ak:refactor — improves code without breaking anything
│   └── docs/AGENT.md               # /ak:docs — JSDoc, README, ADR
├── hooks/
│   ├── README.md                   # How to install and customize hooks
│   ├── settings.template.json      # Ready-to-copy configuration
│   ├── pre-bash-safety.sh          # Blocks destructive commands
│   ├── pre-commit-secrets.sh       # Detects API keys before committing
│   ├── post-write-format.sh        # Auto-formats with Prettier/Biome
│   ├── post-edit-lint.sh           # Lints after each edit
│   └── notify-done.sh              # Desktop notification when Claude finishes
└── memory/
    └── project.md                  # Persistent project memory

Available Skills

One page per skill in docs/skills/ — what it does, when to reach for it, and how to tell it's working.

SkillCommandWhat it does
help/ak:help [task]Points at the one skill that fits what you're doing
setup/ak:setupRecords this repo's branch, commands, and conventions in .ak/config.md
commit/ak:commitReads the real diff and generates a semantic commit message
pr/ak:prCreates PR with description, test plan, and checklist
review/ak:review @fileReviews code: bugs, security, performance
plan/ak:plan [task]Plans before executing, into a resumable specs/<slug>/plan.md
execute/ak:execute [slug]Executes the next pending SDD task and lets verify prove it
debug/ak:debug [problem]Diagnoses with hypotheses before proposing fixes
vibe-audit/ak:vibe-auditFull audit of apps generated with vibe coding
handoff/ak:handoff [focus]Compacts the session into a handoff for a fresh agent
memory/ak:memory <save|recall|clean>Persists, retrieves, and prunes what the project has learned

Specialized Agents

AgentCommandWhat it does
frontend/ak:frontend [description]Generates components following the project's design system
api/ak:api [description]Generates endpoints with validation, auth, and error handling
test/ak:test @fileWrites tests by behavior, not by implementation
refactor/ak:refactor @fileImproves code without changing behavior
docs/ak:docs @fileGenerates JSDoc, README, or ADR as needed

Available Hooks

Hooks run automatically — no activation needed from the dev.

HookEventWhat it does
pre-bash-safetyBefore BashBlocks rm -rf /, force push, drop table, etc.
pre-commit-secretsBefore git commitScans staged files for API keys and tokens
post-write-formatAfter Write/EditFormats with Prettier or Biome automatically
post-edit-lintAfter EditRuns ESLint and returns errors to Claude
notify-doneWhen Claude finishesDesktop notification (Mac/Linux/Windows)

See hooks/README.md for installation instructions.

How to Use with Claude Code

Install the skills

npx ai-workflow-kit            # asks global or project scope

Or copy by hand — each skill is a directory with a SKILL.md:

cp -r skills/* ~/.claude/skills/

Use in any project

Add to your project's CLAUDE.md:

## Available Skills
See ~/.claude/skills/ for the full list.
Project memory at memory/project.md.

Use with Cursor

The rules in .cursorrules apply automatically. Copy the file to your project root.

Use with GitHub Copilot

The .github/copilot-instructions.md file is used automatically in GitHub repos.

Use with Google Antigravity

npx ai-workflow-kit --antigravity            # asks global or project
npx ai-workflow-kit --antigravity --global   # ~/.gemini/config/skills/
npx ai-workflow-kit --antigravity --local    # .agents/skills/ in this project

Antigravity discovers skills from a skills/ folder inside a customization root, in this precedence order:

PriorityLocationScope
1.agents/skills/ at the project rootthis project (commit it to share with the team)
2Paths declared in .agents/skills.jsonwherever you point it
3~/.gemini/config/skills/all projects on your machine
4Built-in skillsbundled with the app

Rules are separate and hierarchical — GEMINI.md, AGENTS.md, and .agents/rules/*.md, loaded by walking up from the file you're editing to the repo root. The installer drops GEMINI.md and AGENTS.md in the project root for you.

Path change: older versions used ~/.gemini/antigravity/skills/. Antigravity migrated the global root to ~/.gemini/config/, leaving a compatibility symlink behind on machines that upgraded in place. Fresh installs don't read the old path, so the kit now writes to ~/.gemini/config/skills/. If you installed an earlier version of the kit, run npx ai-workflow-kit --antigravity --uninstall — it cleans up both paths.

Once installed, invoke skills with @ in the Antigravity sidebar:

  • @commit, @pr, @review, @plan, @execute, @debug, @vibe-audit
  • @frontend, @api, @test, @refactor, @docs

Use with OpenAI Codex

Codex reads two things: AGENTS.md in your project root for the rules, and ~/.codex/prompts/*.md for slash commands. The installer handles both:

npx ai-workflow-kit --codex

It copies codex-prompts/*.md to ~/.codex/prompts/ (or $CODEX_HOME/prompts/ if set) and drops AGENTS.md in the current project. Restart Codex and you'll have:

  • /ak-commit, /ak-pr, /ak-review, /ak-plan, /ak-execute, /ak-debug
  • /ak-vibe-audit, /ak-handoff, /ak-memory

Codex uses - instead of : in command names, so it's /ak-commit, not /ak:commit.

The specialized agents (/ak:frontend, /ak:api, /ak:test, /ak:refactor, /ak:docs) are not ported — they rely on Claude Code subagents, which Codex has no equivalent for.

To remove them:

npx ai-workflow-kit --codex --uninstall

Versioning & Changelog

This project follows Semantic Versioning and Keep a Changelog.

See CHANGELOG.md for the full release history.

Releasing a new version

npm run release:patch   # 1.0.0 → 1.0.1  bug fixes
npm run release:minor   # 1.0.0 → 1.1.0  new skills, agents, or hooks
npm run release:major   # 1.0.0 → 2.0.0  breaking changes

The release script automatically:

  • Reads commits since the last tag and groups them by type (feat → Added, fix → Fixed, refactor → Changed)
  • Prepends the new entry to CHANGELOG.md
  • Bumps package.json version
  • Creates a single commit and an annotated git tag
  • Pushes both to the remote

Requires a clean working tree and conventional commit messages (feat:, fix:, refactor:, etc.).

How to Contribute

  • Fork the repo
  • Write your skill in src/skills/<id>.md — the one hand-written source; skills/, antigravity-skills/, and codex-prompts/ are generated from it by npm run build. See docs/authoring-skills.md for the spec fields and the gates (docs page, eval coverage) the build enforces.
  • Run npm run build && npm testbuild:check fails on hand-edited distributions and missing docs.
  • Open a PR with /ak:pr

Before proposing a feature, check .out-of-scope/ — one file per thing this repo has decided not to build, with the reasoning.

Philosophy

  • Diagnose before acting — an approved plan is worth more than fast code
  • Demonstrated progress — a checkbox is ticked because its command exited 0, never because an agent asserted it
  • Cross-tool skills — the same patterns work in Claude Code, Cursor, Copilot, Antigravity, and Codex
  • Persistent memory — the AI should remember context, not ask for it every time
  • Predictable output — each skill produces the same format, every time

Keywords

claude-code

FAQs

Package last updated on 30 Aug 2026

Related posts