kotadb: Command for Claude Code

.claude/commands/issues/feature.md

feature is a command for Claude Code from jayminwest/kotadb. It costs 0 tokens per session (1,462 once invoked), scanned A, original, MIT.

A command for turning a GitHub issue into a written feature implementation plan.

In plain words
What is it for?
It helps prepare feature work from an issue, including its requirements, constraints, and worktree file paths.
Why use it?
It checks that the issue has the expected labels and records the plan in a predictable project folder.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths.

This is jayminwest/kotadb's own configuration. It tells Claude Code how to work on kotadb itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kotadb configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jayminwest/kotadb. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jayminwest/kotadb/develop/.claude/commands/issues/feature.md
Clone the repo
git clone --depth 1 https://github.com/jayminwest/kotadb

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for feature

README.md
[![agentmods](https://agentmods.dev/badge/commands/jayminwest/kotadb/feature/github.svg)](https://agentmods.dev/commands/jayminwest/kotadb/feature)
Your own site
<a href="https://agentmods.dev/commands/jayminwest/kotadb/feature"><img src="https://agentmods.dev/badge/commands/jayminwest/kotadb/feature/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for feature

Your own site · 80×15
<a href="https://agentmods.dev/commands/jayminwest/kotadb/feature"><img src="https://agentmods.dev/badge/commands/jayminwest/kotadb/feature.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,462 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01462
Opus 5.5 $0.00000 $0.00585
Sonnet 5.5 $0.00000 $0.00292
Haiku 4.5 $0.00000 $0.00146

Measured 1mo ago against content hash 4694cecc9511, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

feature scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/issues/feature.md · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/feature

Template Category: Action

Draft a KotaDB feature implementation plan using the issue context passed in $ARGUMENTS (provide JSON with issue number, title, summary, and constraints).

CRITICAL - Worktree Path Handling:

  • You are executing in an isolated git worktree directory
  • Your CWD is the worktree root (e.g., /project/trees/feat-123-abc12345)
  • ALL file paths in Write, Edit, Read tools MUST be relative to CWD
  • ✅ Correct: .claude/.cache/specs/feature-123-plan.md
  • ❌ Wrong: /project/trees/feat-123-abc12345/.claude/.cache/specs/feature-123-plan.md
  • Using absolute paths will cause git staging failures and commit errors

Instructions

  • Verify issue labels first: Run gh issue view <issue-number> --json labels to ensure the issue has labels from all four categories (component, priority, effort, status). If labels are missing, apply them before proceeding.
  • Create a new markdown plan under .claude/.cache/specs/ named feature-<issue-number>-<slug>.md (e.g., .claude/.cache/specs/feature-1024-event-streaming.md).
  • Build <slug> from the issue title using 3–6 lowercase, hyphenated words (alphanumeric only).
  • Reference issue metadata from $ARGUMENTS at the top of the plan for traceability.
  • Review .claude/commands/docs/conditional_docs/app.md or .claude/commands/docs/conditional_docs/automation.md and read any documentation whose conditions match the feature scope.
  • Use KotaDB MCP tools for context gathering: Use mcp__kotadb-staging__search_code to find similar implementations, mcp__kotadb-staging__analyze_change_impact for large features (see .claude/commands/docs/kotadb-agent-usage.md for patterns)
  • Follow the repo git flow: work from feat/<issue-number>-<slug> branching off develop, with releases promoted from develop to main.
  • Populate the exact format below so automation can reference each section without guesswork.
  • Research existing patterns in src/**, tests/**, and platform docs before proposing changes.
  • Highlight any data contracts, API surfaces, or tooling updates that the feature requires.
  • Think critically about risk, rollout, and validation; do not leave placeholders empty.
  • Enumerate relevant code paths and new assets in their dedicated sections.
  • Incorporate /anti-mock guidance: plan for real database coverage, failure injection, and follow-up for any unavoidable skips.
  • Ensure the plan's final tasks rerun validation and push the branch so a PR can be created (PR titles must end with the issue number, e.g. feat: add search filters (#210)).
  • If the plan introduces new documentation areas, append or update the relevant entry in .claude/commands/docs/conditional_docs/app.md or .claude/commands/docs/conditional_docs/automation.md.

Read the full file on GitHub · 138 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 138 lines · 0 tokens per session scan A 4694cecc9511

Subscribe to this mod's changes

feature is a command published in the GitHub repository jayminwest/kotadb (100 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,462 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.