AI agent skill bundle that teaches coding agents when and how to record architectural, product, and business decisions. Integrates with the DecisionOps MCP service as the canonical decision store.
When an AI coding agent encounters a task involving a non-trivial tradeoff, this skill guides it through a structured workflow:
- Gate — Classify whether the task warrants a recorded decision
- Gather — Fetch relevant prior decisions (2-5 depending on mode)
- Evaluate — Compare options on impact, risk, reversibility, and constraints
- Validate — Check the draft against organization constraints
- Publish — Record the decision and reference
decision_idin PR/commit metadata
The agent prompts the user to choose a mode (Quick, Comprehensive, Skip, or Other) before proceeding.
dops install --platform claude-codeSee the dops CLI documentation for setup instructions.
Copy the decision-ops/ directory to your platform's skill directory:
# Claude Code
cp -r decision-ops/ ~/.claude/skills/decision-ops/
# Cursor
cp -r decision-ops/ ~/.cursor/skills/decision-ops/Then configure the MCP server in your platform's config. For Claude Code, add to .mcp.json:
{
"mcpServers": {
"decision-ops": {
"type": "http",
"url": "https://api.aidecisionops.com/mcp"
}
}
}Installing the skill and MCP config is not enough on its own. You must also:
- Enable the MCP server in your IDE settings. For example, Cursor requires toggling it on in Settings → Tools & MCP. Tools appear as "Disabled" by default.
- Complete the browser OAuth flow on first MCP tool invocation. The IDE opens a browser window for DecisionOps sign-in and consent. After approving, retry the tool call in the IDE.
- Approve tool invocations when the IDE prompts you (e.g., Claude Code requires manual approval per MCP tool call).
IDE MCP authentication uses OAuth (authorization code + PKCE) exclusively. There is no API key or token-based method. CLI auth (dops login) does not carry over to IDE MCP sessions — each IDE authenticates independently.
And bind the repository by creating .decisionops/manifest.toml:
version = 1
org_id = "your-org"
project_id = "your-project"
repo_ref = "owner/repo"
default_branch = "main"
mcp_server_name = "decision-ops"
mcp_server_url = "https://api.aidecisionops.com/mcp"| Platform | Skill install | MCP config |
|---|---|---|
| Claude Code | ~/.claude/skills/decision-ops/ |
.mcp.json |
| VS Code | not supported | .vscode/mcp.json |
| Cursor | ~/.cursor/skills/decision-ops/ |
.cursor/mcp.json |
| Codex | ~/.codex/skills/decision-ops/ |
codex.toml |
| Antigravity | ~/.antigravity/skills/decision-ops/ |
.antigravity/mcp.json |
Platform definitions are in platforms/*.toml.
The skill activates when a task involves at least one of:
- Introducing, removing, or upgrading a dependency, platform, or provider
- Changing API shape, schema, storage model, or data retention
- Choosing between product directions (pricing, onboarding, rollout strategy)
- Adopting, deferring, or waiving a security/compliance/reliability control
- Setting a testing or release strategy with explicit risk tradeoffs
- Selecting, changing, or terminating a vendor or partner
- Making budget, headcount, or resource allocation decisions
- Committing to legal/contractual/regulatory obligations
The skill skips typo fixes, doc spelling, pure reformatting, and version bumps with no architectural choice.
The skill uses 6 MCP tools provided by the DecisionOps service:
| Tool | Purpose |
|---|---|
do-prepare-decision-gate |
Resolve project context and classify whether a task is recordable |
do-search-decisions |
Search prior decisions by terms, with mode-based limits |
do-create-decision-draft |
Create a decision draft with options, consequences, and validation plan |
do-validate-decision |
Validate a draft or existing decision against org constraints |
do-publish-decision |
Publish a proposed decision (transition to Accepted) |
do-get-decision |
Read-only fetch of a full decision record |
Full payload shapes and error contracts are in decision-ops/references/mcp-interface.md.
Project-scoped drafts are the default and can be created even when a project has no linked repositories. Linked repositories are only required for repo-scoped drafts and repo_ref-based project resolution.
decision-ops/ # The installable skill bundle
SKILL.md # Skill definition with activation criteria and workflow
references/
decision-ops-manifest.md # .decisionops/manifest.toml contract
mcp-interface.md # MCP tool payloads and error codes
decision-register-format.md # Decision record markdown format
evals/
trigger-queries.json # Activation precision/recall test cases
evals.json # End-to-end workflow fidelity tests
agents/
openai.yaml # OpenAI agent platform config
scripts/
read-manifest.sh # Shell helper to read manifest TOML
platforms/ # Platform target definitions (TOML)
claude-code.toml
vscode.toml
cursor.toml
codex.toml
antigravity.toml
scripts/
generate-platform-catalog.ts # Build combined JSON catalog from platforms/*.toml
validate.ts # Bundle validation script
src/
index.ts # Package exports (metadata, platform loader)
Tests activation precision and recall. Contains positive cases (should trigger the skill) and negative cases (should not trigger). Each entry has id, prompt, and why.
End-to-end cases testing the full decision workflow. Each case defines expected_behavior and a rubric for grading agent output quality.
Run the eval suite with your preferred eval harness, feeding the cases as test inputs.
Validate the skill bundle structure:
bun run scripts/validate.tsChecks: SKILL.md frontmatter (name, description), body length, trigger-queries format, evals format, agent configs, and script executability.
bun install
bun run validate # validate bundle structure
bun run typecheck # type check
bun test # run tests- Edit
decision-ops/SKILL.mdfor workflow changes - Edit
decision-ops/references/*.mdfor MCP or format contract changes - Add platform support by creating a new TOML in
platforms/ - Regenerate
platforms/platform-catalog.jsonwithbun run generate:platform-catalog - Run
bun run validateafter changes to verify bundle integrity
Apache-2.0