alpacalyzer-algo-trader: Command for Claude Code

.agents/commands/plan-feature.md

plan-feature is a command for Claude Code from kimrejstrom/alpacalyzer-algo-trader. It costs 0 tokens per session (1,609 once invoked), scanned A, original, MIT.

A command that turns a high-level feature description into small, ordered GitHub issues with information an agent orchestrator can use.

In plain words
What is it for?
Use it with a feature description to inspect repository context and prepare dependency-aware issues ready for creation.
Why use it?
It removes the manual work of inspecting the repository, finding affected areas, and deciding how to split and sequence implementation tasks.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: positional $N argument; mentions Claude Code; installed under .agents/ (shared by several agents).

This is kimrejstrom/alpacalyzer-algo-trader's own configuration. It tells Claude Code how to work on alpacalyzer-algo-trader 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 alpacalyzer-algo-trader configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kimrejstrom/alpacalyzer-algo-trader. 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/kimrejstrom/alpacalyzer-algo-trader/main/.agents/commands/plan-feature.md
Clone the repo
git clone --depth 1 https://github.com/kimrejstrom/alpacalyzer-algo-trader

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 plan-feature

README.md
[![agentmods](https://agentmods.dev/badge/commands/kimrejstrom/alpacalyzer-algo-trader/plan-feature/github.svg)](https://agentmods.dev/commands/kimrejstrom/alpacalyzer-algo-trader/plan-feature)
Your own site
<a href="https://agentmods.dev/commands/kimrejstrom/alpacalyzer-algo-trader/plan-feature"><img src="https://agentmods.dev/badge/commands/kimrejstrom/alpacalyzer-algo-trader/plan-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 plan-feature

Your own site · 80×15
<a href="https://agentmods.dev/commands/kimrejstrom/alpacalyzer-algo-trader/plan-feature"><img src="https://agentmods.dev/badge/commands/kimrejstrom/alpacalyzer-algo-trader/plan-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,609 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.01609
Opus 5 $0.00000 $0.00805
Sonnet 5 $0.00000 $0.00322
Haiku 4.5 $0.00000 $0.00161

Measured 10d ago against content hash fe33766c7308, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

plan-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 10d 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.

.agents/commands/plan-feature.md · 206 lines

How it starts

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

Plan Feature Command

Decompose a high-level feature into well-formed, agent-sized GitHub issues with dependency ordering and Agent Metadata — ready for the orchestrator.

Usage

/plan-feature <feature_description>

Arguments:

  • feature_description: A natural-language description of the feature to plan. Can be a sentence, a paragraph, or a reference to an existing issue/doc.

Argument Indexing

  • Claude Code: Use $1 for the first argument (feature description, may be multi-word)
  • OpenCode: Use $ARGUMENTS to get all arguments

Steps

1. Get Repo Info

git remote get-url origin

Parse owner and repo name.

2. Understand the Codebase Context

Read the key context files to understand what exists:

  • AGENTS.md — architecture overview, component locations
  • docs/architecture/overview.md — module structure, layering rules
  • docs/principles.md — code invariants (if exists)

Scan the source directory to understand the current module structure.

3. Analyze the Feature

Break the feature description into concrete work items. For each, determine:

  • What changes: Which files/modules are affected
  • Scope: Is this a new module, modification to existing, or cross-cutting?
  • Complexity: small (< 1 hour agent work), medium (1-3 hours), large (needs further decomposition)
  • Dependencies: Does this require another piece to land first?
  • Parallel safety: Can an agent work on this while other agents work on sibling issues?

4. Decomposition Rules

Follow these rules when breaking down work:

  1. One issue = one agent session = one worktree. If a task requires touching more than 3-4 files across different modules, it's probably too big.
  2. Large → split further. Any issue estimated as "large" must be decomposed into small/medium sub-issues. Agents work best with focused, bounded tasks.
  3. Test-first is non-negotiable. Every issue must be testable. If you can't describe a test scenario, the issue is too vague.
  4. Data models before consumers. If the feature needs new data models, that's issue #1. Code that uses those models depends on it.
  5. Infrastructure before features. Config, schemas, migrations, shared utilities come before the features that use them.
  6. Vertical slices over horizontal layers. Prefer "implement feature X end-to-end" over "add all database models, then add all API routes, then add all tests." But respect dependency ordering — if 3 features share a model, the model is its own issue.
  7. Explicit acceptance criteria. Every issue needs concrete, checkable criteria. "Implement the thing" is not an acceptance criterion. "Function X returns Y when given Z" is.
  8. No orphan issues. Every issue should be reachable from the dependency graph. If an issue has no dependents and no dependencies, question whether it belongs in this feature.

Read the full file on GitHub · 206 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. 10d ago First seen · 206 lines · 0 tokens per session scan A fe33766c7308

Subscribe to this mod's changes

plan-feature is a command published in the GitHub repository kimrejstrom/alpacalyzer-algo-trader (2 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,609 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-31.