speckit.product-forge.research

speckit.product-forge.research is a command for Claude Code from VaiYav/speckit-product-forge. It costs 89 tokens per session (4,969 once invoked), scanned A, original, MIT.

A research step for investigating a proposed product feature before writing its specification. It covers competitors, user-interface patterns, and how the feature could fit the existing codebase, with optional technical and business-metric research.

In plain words
What is it for?
Use it to gather structured research about competitors, interface patterns, codebase integration, technology choices, and expected return. It saves the findings in a feature’s research folder.
Why use it?
Starting with too little context can lead to a feature that copies poorly understood ideas or conflicts with the current product. The research depth changes according to how much information the user already provided.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is convention in [docs/interaction.md](../docs/interaction.md) (ready snippets in.

Part of the speckit-product-forge plugin — 31 commands shipped together

Good fit Use it to gather structured research about competitors, interface patterns, codebase integration, technology choices, and expected return. It saves the findings in a feature’s research folder.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/VaiYav/speckit-product-forge
agentmods
npx agentmods add commands/vaiyav/speckit-product-forge/research

Made for: Claude Code.

Or install speckit-product-forge, the plugin that ships this one along with the rest of its 31 commands.

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 speckit.product-forge.research

README.md
[![agentmods](https://agentmods.dev/badge/commands/vaiyav/speckit-product-forge/research/github.svg)](https://agentmods.dev/commands/vaiyav/speckit-product-forge/research)
Your own site
<a href="https://agentmods.dev/commands/vaiyav/speckit-product-forge/research"><img src="https://agentmods.dev/badge/commands/vaiyav/speckit-product-forge/research/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 speckit.product-forge.research

Your own site · 80×15
<a href="https://agentmods.dev/commands/vaiyav/speckit-product-forge/research"><img src="https://agentmods.dev/badge/commands/vaiyav/speckit-product-forge/research.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,969 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.00089 $0.04969
Opus 5 $0.00044 $0.02485
Sonnet 5 $0.00018 $0.00994
Haiku 4.5 $0.00009 $0.00497

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

Security

Grade A, and why

speckit.product-forge.research 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 9d 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.

commands/research.md · 590 lines

How it starts

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

Product Forge — Phase 1: Research

You are the Research Orchestrator for Product Forge Phase 1. Your goal: gather exhaustive, structured research before any product spec is written. The depth of onboarding adapts to how much context the user already provided.

User Input

$ARGUMENTS

If $ARGUMENTS contains --dry-run, honor docs/runtime.md §7: write the research/ artifacts under {FEATURE_DIR}/.forge-dry-run/research/, do not update .forge-status.yml, and emit a DRY-RUN-REPORT.md.


Step 1: Assess Input Richness

Before asking any questions, score the provided input across 4 dimensions:

Dimension Score 0 Score 1 Score 2
Feature description Vague (1–5 words) Clear (1–2 sentences) Detailed (3+ sentences with use case)
Competitor knowledge None mentioned "There are apps like X" Named list of 3+ specific competitors
Technical context Not mentioned Tech stack hinted Explicit tech stack + constraints
Domain context Implicit only Domain stated Domain + target user + market stated

Sum the scores → Input Richness Score (0–8):

  • 0–2FULL_INTERVIEW mode — ask all 7 questions
  • 3–5PARTIAL_INTERVIEW mode — ask only gaps (skip answered dimensions)
  • 6–8CONFIRM mode — brief 1-message confirmation, then proceed

Load project config from .product-forge/config.yml:

  • project_name, project_domain, project_tech_stack, codebase_path, features_dir

Resolve FEATURE_DIR via the Path-Resolution Contract resolve(slug) (docs/runtime.md §12.2) — under the default flat strategy this is {features_dir}/{feature-slug}/; under domain-nested it locates/places the feature at {features_dir}/<domain>/<slug>/. Set RESEARCH_DIR = {FEATURE_DIR}/research/


Interaction (normative): every question in this phase uses the structured convention in docs/interaction.md (ready snippets in docs/templates/interaction-prompts.md). Ask one decision at a time; the research-scope opt-in uses the multiSelect prompt. Content-gathering questions (description, competitors, constraints, …) are free-text — never dump a single wall of open questions.

Read the full file on GitHub · 590 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. 9d ago First seen · 590 lines · 89 tokens per session scan A 8b2ddab18158

Subscribe to this mod's changes

speckit.product-forge.research is a command published in the GitHub repository VaiYav/speckit-product-forge (23 stars, last pushed 15d ago), licensed MIT. It adds 89 tokens to every session and 4,969 once invoked, about $0.0004 per session on Opus 5. 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.