Skip to content

decisionops/skill

Repository files navigation

Decision Ops Skill

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.

What it does

When an AI coding agent encounters a task involving a non-trivial tradeoff, this skill guides it through a structured workflow:

  1. Gate — Classify whether the task warrants a recorded decision
  2. Gather — Fetch relevant prior decisions (2-5 depending on mode)
  3. Evaluate — Compare options on impact, risk, reversibility, and constraints
  4. Validate — Check the draft against organization constraints
  5. Publish — Record the decision and reference decision_id in PR/commit metadata

The agent prompts the user to choose a mode (Quick, Comprehensive, Skip, or Other) before proceeding.

Install

Via dops CLI (recommended)

dops install --platform claude-code

See the dops CLI documentation for setup instructions.

Manual install

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"
    }
  }
}

After install: authenticate and enable MCP tools

Installing the skill and MCP config is not enough on its own. You must also:

  1. 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.
  2. 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.
  3. 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"

Supported platforms

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.

Decision triggers

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.

MCP tools

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.

Skill structure

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)

Evals

Trigger queries (evals/trigger-queries.json)

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.

Workflow evals (evals/evals.json)

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.

Validation

Validate the skill bundle structure:

bun run scripts/validate.ts

Checks: SKILL.md frontmatter (name, description), body length, trigger-queries format, evals format, agent configs, and script executability.

Development

bun install
bun run validate          # validate bundle structure
bun run typecheck         # type check
bun test                  # run tests

Modifying the skill

  • Edit decision-ops/SKILL.md for workflow changes
  • Edit decision-ops/references/*.md for MCP or format contract changes
  • Add platform support by creating a new TOML in platforms/
  • Regenerate platforms/platform-catalog.json with bun run generate:platform-catalog
  • Run bun run validate after changes to verify bundle integrity

License

Apache-2.0

Releases

No releases published

Packages

 
 
 

Contributors