AGENT SKILL

feature-discovery

The discovery → definition front half for any new feature. Investigates the real codebase and product brief from product, design and engineering angles, then writes a right-sized PRD + design brief + tech spec before any code. Use when someone asks for a new feature or capability, a PRD, requirements, or to scope or spec something. Hands off to build-feature.

License 许可
MIT
最近更新
2026-10-06
Stars
★ 0
Forks
0

01 前言 Front Matter

name
feature-discovery
description
The discovery → definition front half for any new feature. Investigates the real codebase and product brief from product, design and engineering angles, then writes a right-sized PRD + design brief + tech spec before any code. Use when someone asks for a new feature or capability, a PRD, requirements, or to scope or spec something. Hands off to build-feature.
argument-hint
<feature idea or ticket id>

03 SKILL.md 正文

Feature discovery

Don't jump to code off a one-line idea. Twenty minutes here saves days of rework.

1. Ground it

  • Read docs/product/BRIEF.md (core loop, north star, out-of-scope list).
  • Read design/brief.json → decisions: any deferred decision whose phase has arrived (next's decisions_due lists them; on the first feature that's the first-feature ones: the nudge policy and when to ask for each permission) and any this feature touches. Read docs/DEFAULTS.md for the calls already made (permission priming after the payoff, at most one notification a day, the review prompt…).
  • Find or file the ticket (backlog skill).
  • Read the code the feature touches: screens, lib/api.ts adapters, routers, tables. Note what already exists that can be reused.

2. Three perspectives

In Claude Code, spawn product-manager, ux-designer and lead-engineer as parallel subagents, each with the brief, the ticket and the code you found in step 1; they return findings and ⚖️ QUESTION: blocks, and you ask the owner. In Codex, take the three views one after another.

  • Product: what user problem, which step of the core loop, how we'll know it worked (which event moves which metric), what's explicitly out of scope.
  • Design: the screens/states (loading, empty, error, success), copy in the project's voice, accessibility notes, judged against docs/design/TASTE.md (the rubric the prototype passed). For a real UI fork, render 2 options as HTML mockups and ask the owner. Don't pick silently.
  • Engineering: data model changes (additive migration + RLS), endpoints (wire shape, auth, user_id scoping), mobile adapter, analytics events (success + failure), env vars/feature config, test plan, risks.

3. Write the spec (one file, right-sized)

docs/product/specs/<ticket>-<slug>.md:

# <Feature>  (<ticket>)
## Problem & outcome   (who, what changes for them, metric)
## Scope / Out of scope
## UX                  (screens + states; mockup link if any)
## Data & API          (migration, endpoint + request/response shape, Wire type)
## Analytics           (event names + props, success+failure pairs)
## Requirements        FR-01… each testable
## Test plan           TC-01… mapped to FRs; include one E2E flow if UI changes
## Risks & ⚖️ decisions for the owner

A small feature is half a page. Don't pad.

4. Gate

Show the owner the Problem/Scope/UX/⚖️ sections (not the whole spec) and get a yes. Ask the due decisions from step 1 in the same structured round, each with the docs/DEFAULTS.md answer as the recommended option, and write each answer back to its ledger entry (status: asked, or default if they took the recommendation). Then hand off: "Run build-feature <spec path>."

Ask the owner

Follow .agents/rules/product-judgement.md: ask with a structured question (recommended option first), never decide these silently. In this skill that means: Scope in and out of v1, which user problem wins when two conflict, copy and tone of new screens, any new personal data collected, and the success metric. Ask them together once discovery is done, before the PRD is final; the PRD records each answer.

04 同仓库更多 Skills

foxinthehenhouse
foxinthehenhouse/app-in-a-box

ship

Release checklist for getting a build to testers or the stores. Runs the risk gate first (refuses while a risk item is open) and walks the owner through the compliance checklist. Covers the version bump, EAS build and submit, OTA updates and when they're safe, changelog, store listing, privacy nutrition label / data safety form, the Accessibility Nutrition Labels, and the account-deletion requirement. Guidance-level; it never handles signing secrets. Use when asked to ship, release, submit to TestFlight / App Store / Play, or push an OTA update.

★ 0
foxinthehenhouse
foxinthehenhouse/app-in-a-box

routines

Put the project's recurring rituals on a schedule, with the owner's consent. Weekly north-star report, monthly market watch, dependency triage, Supabase advisor sweep, reflect and harness-optimize. Uses Claude Code Routines (cloud cron) where they fit, and documents the Codex / local cron equivalent. Use when asked to automate, schedule or "keep the project moving on its own", or after setup finishes.

★ 0
foxinthehenhouse
foxinthehenhouse/app-in-a-box

reflect

Consolidate what recent sessions learned into the project's long-term memory (.agents/memory). Use at the end of a substantial session, after a correction from the user, after a painful debugging session, when the session-start healthcheck says reflect is overdue or a pending-reflection seed is waiting, or when MEMORY.md exceeds its budget.

★ 0
foxinthehenhouse
foxinthehenhouse/app-in-a-box

pr-review

Review a pull request on the owner's behalf and fix what's safe to fix. Runs the deterministic gates first, then correctness/security, design-system, accessibility and analytics review passes, verifies each blocking finding, applies safe fixes, re-checks, and ends with a plain-English verdict. Use when a PR is opened, when asked to review a PR, a branch or a pasted diff, or before merging anything.

★ 0
foxinthehenhouse
foxinthehenhouse/app-in-a-box

north-star-report

Weekly product-analytics and reliability readout. Pulls the funnel of the brief's 5 north-star events from PostHog, finds the biggest drop-offs and errors, checks each SLO in docs/slo.yaml against its error budget, compares with last week, and proposes (then, with a yes, files) tickets that target them. Use weekly, when the session-start line says it's overdue, when the backlog is empty, or when asked "how is the app doing?".

★ 0
foxinthehenhouse
foxinthehenhouse/app-in-a-box

next

Decide the single next best thing to work on, with two alternates. Reads setup progress, work in progress, open PRs and failing CI, the backlog (GitHub Issues or Linear), overdue harness rituals, product decisions parked until now, and north-star analytics if PostHog is connected. Use when someone asks "what next?", "what should I work on?", at the start of a session, or after a PR merges.

★ 0