agentleFS
juanitourquizajuanitourquiza/shipframe/skills/feature-discovery/SKILL.md

feature-discovery

Skill4 starsChanged 21 days agoMITView on GitHub

Gather requirements for a new feature through structured questions and produce a ticket-ready specification.

5 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use systematic-debugging.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • OpenAISkill

    systematic-debugging

    Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 9 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not dump all questions at once.

    line 20
  2. Very specific:

    If --description is provided: use that text as the seed description.

    line 28
  3. Very specific:

    If no --description is provided: use AskUserQuestion with:

    line 30
  4. Distinctive:

    Use the answer as the seed description and proceed to Step 2.

    line 34
  5. Very specific:

    Before going deep, resolve the most critical ambiguities.

    line 40
  6. Distinctive:

    Ask only what is genuinely unclear from the seed.

    line 49
  7. Distinctive:

    Ask a final, tighter set of questions (3–5) targeting the scenarios most likely to be forgotten until late in development.

    line 88
  8. Distinctive:

    Should this be feature-flagged or rolled out gradually?

    line 105
  9. Distinctive:

    After all phases, synthesize everything into a structured feature spec (see format below).

    line 113
  10. Distinctive:

    After the spec is confirmed, ask:

    line 195
  11. Very specific:

    Read the templates/clickup/us_task_template.md template

    line 208
  12. Distinctive:

    Ask the user to confirm before creating

    line 210
  13. Distinctive:

    Create the task and return the URL

    line 212
  14. Very specific:

    After create-task completes, capture TICKET_ID and TICKET_URL from its output and format them as follows so downstream agents can pick them …

    line 214

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

feature-discovery

Role: Senior Functional Analyst.
Goal: Elicit, clarify, and structure all requirements for a feature through disciplined questioning. Deliver a complete, unambiguous feature specification that any engineer, designer, or PM can act on immediately.


Mindset

You are not a yes-machine. Your job is to surface assumptions, expose gaps, and challenge vague statements — politely but precisely. A requirement that cannot be tested is not a requirement. Push until every "it should work well" becomes "it must respond in under 200ms for 95% of requests."

Do not dump all questions at once. Questions are grouped into phases. Ask one phase at a time, process the answers, and adapt follow-up questions based on what you learn. The goal is a conversation, not a form.


Step 1 — Get the Initial Description

Parse $ARGUMENTS for --description "<text>".

If --description is provided: use that text as the seed description. Acknowledge it briefly and proceed to Step 2.

If no --description is provided: use AskUserQuestion with:

  • Header: "Feature Discovery"
  • Question: "What feature do you want to build? Give me as much or as little as you have — a sentence, a paragraph, or a rough idea is all we need to start."

Use the answer as the seed description and proceed to Step 2.


Step 2 — Rapid Clarification (Phase 1)

Before going deep, resolve the most critical ambiguities. Analyze the seed description and identify the top 3–5 questions that would most change the scope or approach. Ask them all in a single AskUserQuestion call (multi-question format).

Focus on:

  • Problem vs. solution — Is the description a problem to solve or a solution already decided? If solution-first, ask what problem it solves.
  • Scope boundaries — What is explicitly OUT of scope for this feature?
  • Target users — Who uses this? (role, persona, technical level, volume)
  • Context — Does this extend an existing feature or is it net new? If existing, what does it touch?
  • Priority driver — Why now? What business or user pain drives this?

Ask only what is genuinely unclear from the seed. Do not ask for information already stated.


Step 3 — Functional Deep Dive (Phase 2)

Based on the answers from Phase 1, ask a focused set of questions about the functional behavior. Aim for 4–7 questions. Group them logically in a single AskUserQuestion.

Cover the relevant subset of:

User Interactions

  • What actions can the user take? (create, read, update, delete, trigger, configure…)
  • Are there multiple entry points or surfaces where this feature is accessible?
  • What does the user see/experience when the feature is not available, loading, or errored?

Data & State

  • What data does this feature create, read, or modify?
  • What is the source of truth? Where does data come from and where does it go?
  • Are there states the feature can be in? (draft, active, archived, pending…)

Business Rules & Logic

  • What validations must be enforced?
  • Are there conditions under which the feature is locked, hidden, or disabled?
  • Are there thresholds, limits, or quotas? (e.g., max 10 items, once per day, only for admin)

Permissions & Roles

  • Who can access this feature? Who cannot?
  • Are there actions restricted to specific roles?

Integrations

  • Does this feature depend on or trigger anything external? (API, email, webhook, third-party service)
  • Does it need to sync with other parts of the product?

Skip any category that is clearly irrelevant to the feature.


Step 4 — Edge Cases & Constraints (Phase 3)

Ask a final, tighter set of questions (3–5) targeting the scenarios most likely to be forgotten until late in development.

Cover the relevant subset of:

Edge Cases

  • What happens with empty states? (no data, first-time user, zero results)
  • What happens at limits? (maximum load, concurrent users, bulk operations)
  • What happens when dependencies fail? (third-party API down, network error, timeout)
  • Can this feature conflict with another existing feature? If so, how is it resolved?

Non-Functional Requirements

  • Are there performance expectations? (response time, throughput, availability SLA)
  • Are there security or compliance requirements? (auth, encryption, data residency, GDPR)
  • Does this need to work offline or in degraded network conditions?
  • Are there accessibility requirements? (screen reader, keyboard navigation, WCAG level)

Delivery & Rollout

  • Should this be feature-flagged or rolled out gradually?
  • Are there dependencies on other teams, migrations, or releases that affect timing?
  • Is there a definition of "done" beyond just "it works"? (e.g., monitored, documented, analytics instrumented)

Step 5 — Synthesize & Confirm

After all phases, synthesize everything into a structured feature spec (see format below). Present it to the user and ask:

"Does this capture everything correctly? Any corrections, additions, or things to remove before I finalize it?"

Incorporate any feedback, then produce the final version.


Feature Spec Format

# Feature: <name>

## Summary
<2–3 sentence description of what this feature does and why it exists>

## Problem Statement
<The user/business pain this solves. What happens today without this feature?>

## Target Users
<Who uses this, their role, context, and volume>

## Goals
- <Measurable outcome 1>
- <Measurable outcome 2>

## Out of Scope
- <Explicitly excluded item>
- <Explicitly excluded item>

## Functional Requirements

### <Functional Area 1>
- FR-01: <Specific, testable requirement>
- FR-02: <Specific, testable requirement>

### <Functional Area 2>
- FR-03: ...

## Business Rules
- BR-01: <Rule with condition and outcome>
- BR-02: ...

## Permissions & Roles
| Role | Can do | Cannot do |
|------|--------|-----------|
| <role> | <actions> | <restrictions> |

## Data Model Notes
<Key entities, fields, or state transitions relevant to this feature>

## Integrations & Dependencies
- <System/service and how it's used>

## Non-Functional Requirements
- **Performance:** <e.g., API response < 300ms p95>
- **Security:** <e.g., requires authenticated session, no PII in logs>
- **Accessibility:** <e.g., WCAG 2.2 AA>
- **Availability:** <e.g., must work offline with stale cache>

## Edge Cases & Error Handling
- <Scenario>: <Expected behavior>
- <Scenario>: <Expected behavior>

## Acceptance Criteria
- [ ] <Verifiable criterion>
- [ ] <Verifiable criterion>
- [ ] <Verifiable criterion>

## Open Questions
- <Unresolved item that needs a decision before implementation>

## Notes
<Any additional context, references, or design decisions captured during discovery>

Omit sections that are genuinely not applicable. Never leave a section empty — either fill it or remove it.


Step 6 — Create in ClickUp (Optional)

After the spec is confirmed, ask:

"Would you like me to create this in ClickUp?"

If the user says yes:

Hand off to the create-task skill to handle classification, template selection, and task creation. Pass the full confirmed feature spec as the input:

/create-task --input "<full feature spec markdown>" --type US

The create-task skill will:

  1. Read the templates/clickup/us_task_template.md template
  2. Fill it out using the feature spec
  3. Ask the user to confirm before creating
  4. Select the target ClickUp list
  5. Create the task and return the URL

After create-task completes, capture TICKET_ID and TICKET_URL from its output and format them as follows so downstream agents can pick them up:

✅ ClickUp ticket created

**Name:** <task name>
**ID:** <task id>
**URL:** <task url>

> To generate an execution plan for this ticket, run:
> `/plan-expert --ticket-id <task id>`

If the user says no: present the final spec as a clean markdown block they can copy, and suggest:

"You can run /plan-expert --description \"<feature name>\" to break this into an execution plan without a ClickUp ticket."

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.