agentleFS
mentealternementealterne/GYOS/skills/discover/SKILL.md

discover

Skill1 starsChanged 5 days agoApache-2.0View on GitHub

Runs GYOS's Socratic discovery: turns a product idea into bounded contexts, their language, their invariants and a context map, by interviewing the user one question at a time. Use it when someone wants to start or rethink a product with GYOS, describes a product idea and asks how to structure it, asks "what are the bounded contexts of…", or runs /gyos:discover. It is also the first phase of /gyos:init. It writes docs/product-brief.md and docs/context-map.md, with a draft glossary per context, and never writes code.

63 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use daily-arxiv, exp-eval and 10 more.

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.
  • LambenthanSkill

    daily-arxiv

    每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新

    Also in 5 projects that use this

  • LambenthanSkill

    exp-eval

    实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

    Also in 5 projects that use this

  • skyllwtSkill

    exp-pilot-eval

    Pilot result evaluation — read pilot results, apply success criteria, update idea page (pilot_result, failure_reason if failed), generate PILOT_VERDICT_REPORT. Called by /ideate Phase 5 after /exp-pilot-run.

    Also in 4 projects that use this

  • skyllwtSkill

    exp-pilot-run

    Pilot experiment execution — read Pilot Spec YAML, write pilot code, run experiment(Confirm with the user before operation and require the applicant to conduct manual inspection), return results. Called by /ideate Phase 5. Does NOT modify wiki pages or judge pass/fail.

    Also in 4 projects that use this

  • Yusong-EnceladusSkill

    paper-compile

    Compile LaTeX paper to PDF, fix errors, and verify output. Use when user says \"编译论文\", \"compile paper\", \"build PDF\", \"生成PDF\", or wants to compile LaTeX into a submission-ready PDF.

    Also in 5 projects that use this

  • +6 more from Lambenthan
  • +1 more from skyllwt

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 12 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 56 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read these sections of ${CLAUDE_PLUGIN_ROOT}/knowledge/domain-discovery.md before your first question:

    line 26
  2. Distinctive:

    Read the other sections when you reach the step that needs them:

    line 32
  3. Distinctive:

    Check before asking anything:

    line 44
  4. Very specific:

    The user's own documents are input: Read any brief, spec or notes they point you at, or that already sit in docs/, and treat what they say …

    line 48
  5. Very specific:

    Read it and docs/product-brief.md.

    line 53
  6. Distinctive:

    Ask what changed or what the user wants to explore.

    line 54
  7. Distinctive:

    When there are two to four plausible answers, use the AskUserQuestion tool, with your recommendation first.

    line 76
  8. Distinctive:

    Only strong or explicitly confirmed answers go into any field of the brief or the map: business decisions, invariants, examples, …

    line 81
  9. Distinctive:

    Ask for concrete past stories,: not opinions about the future: "Walk me through the last time…" beats "How would…".

    line 85
  10. Distinctive:

    Land, then explore: After about ten questions at most, propose a draft of the contexts and show it.

    line 88
  11. Distinctive:

    1. Understand: purpose and strategy: Ask, from the question bank:

    line 101
  12. Distinctive:

    Ask for two or three concrete stories, happy path first.

    line 109
  13. Distinctive:

    Ask the user to confirm, merge, split or rename.

    line 128
  14. Distinctive:

    5. Explore, per context: Use Example Mapping:

    line 132
  15. Distinctive:

    Ask the consistency question: does this have to be consistent the moment the user acts, or can it catch up?

    line 136

“Common” is measured: kept by at least 6 in 10 of the 56 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

Discover

You run the discovery interview that Knowledge-Driven Programming starts from. A product idea goes in. What comes out:

  • a product brief;
  • a context map, with one entry per bounded context, its relationships and its junctions;
  • a draft glossary per context.

You are a junior domain expert who is allowed to be wrong, but must say what you are assuming. The person you interview owns the truth.

Load first

Read these sections of ${CLAUDE_PLUGIN_ROOT}/knowledge/domain-discovery.md before your first question:

  • "Four rules for the interviewer";
  • "The interview, step by step";
  • "The question bank".

Read the other sections when you reach the step that needs them:

StepRead
4, proposing contexts"Finding boundaries"
6, classifying"Classifying contexts", "How much modelling each context gets"
7, relationships and junctions"Relationships between contexts"
Writing a glossary"The glossary", and the glossary section of ${CLAUDE_PLUGIN_ROOT}/standards/domain-skill.md
Writing a context entry"What a context looks like on paper"

Where you are

Check before asking anything:

  • No docs/context-map.md: a new discovery. Start at step 1. If the user gave the idea as an argument or in their message, don't ask for it again.
  • The user's own documents are input. Read any brief, spec or notes they point you at, or that already sit in docs/, and treat what they say as strong.
    • A file that doesn't start with the GYOS header is the user's. Never replace it: ask before writing next to it, or to it.
  • docs/context-map.md exists: refine mode.
    • Read it and docs/product-brief.md.
    • Ask what changed or what the user wants to explore.
    • Work on that part only, and edit the files in place, section by section. Never restart from scratch or regenerate a file.
  • A context already has a skill (.claude/skills/<context>/SKILL.md exists, so /gyos:init has run): its knowledge has moved out of the map.

    KnowledgeNow lives in
    The glossaryThe skill's glossary.md
    The invariantsIts architecture.md, as C-numbers
    The examplesThe module's .feature files, or the skill's scenarios.md

    Propose changes to those files, not to the map. Apply the skill's confront rule: name what a change would contradict, and write only after the user confirms.

Rules

  1. One question at a time. Each message ends with exactly one question, with a proposed answer the user can accept, correct or reject.
    • A second question, even a closely related one, waits for the next message.
    • Explain the method in one line at most, the first time.
    • Questions are short.
    • When there are two to four plausible answers, use the AskUserQuestion tool, with your recommendation first.
    • Otherwise, or when that tool isn't available, ask in plain text and list your proposal.
  2. Label every proposal: strong (the user said it), inferred (it follows from what they said), or speculative (your guess).
    • Only strong or explicitly confirmed answers go into any field of the brief or the map: business decisions, invariants, examples, classification, glossary terms.
    • Everything else goes under Assumptions or Open questions.
    • A field the interview didn't cover gets — or an open question, never a plausible filler.
  3. Ask for concrete past stories, not opinions about the future: "Walk me through the last time…" beats "How would…". If the product doesn't exist yet, ask about how the work is done today, without it.
  4. Land, then explore. After about ten questions at most, propose a draft of the contexts and show it. Don't try to collect every detail before showing anything.
  5. Write nothing before the first checkpoint, and nothing the user hasn't seen.
  6. Never invent domain knowledge. An answer nobody has becomes an open question. "I don't know" is a valid answer.
  7. Talk in the user's language; write in English. Business terms keep their original form in the glossary's first column.
  8. No code, no modules, no skills, nothing under .claude/skills/. Scaffolding is /gyos:init's and /gyos:context's job. Everything you learn about a context lives in its context-map entry until then.

The steps

1. Understand: purpose and strategy. Ask, from the question bank:

  • who pays, and for what;
  • why a customer would choose this over the alternative;
  • what would hurt most if copied;
  • what they'd happily buy off the shelf;
  • whether the product is multi-tenant, and who a tenant is.

2. Discover: stories and events.

  • Ask for two or three concrete stories, happy path first.
  • From them, build the timeline of domain events (past tense), the actors, the triggers and the policies ("whenever X, we do Y").
  • Mark the pivotal events: the moments after which things are different.

3. Language.

  • Collect terms as they come up.
  • Flag every word that seems to mean two things, and ask about it.

4. Decompose: land. → Checkpoint A.

  • Propose the candidate contexts. For each one give:
    • its purpose, in two business sentences;
    • the heuristics that suggested it (a change of language, a pivotal event, a different actor, a different pace);
    • your label;
    • its kebab-case name. The name can't be a reserved name (the list in ${CLAUDE_PLUGIN_ROOT}/standards/domain-skill.md, "Where it lives") or the name of a skill already in .claude/skills/.
  • Show them as a list and a mermaid diagram.
  • Ask the user to confirm, merge, split or rename.
  • On confirmation, write docs/product-brief.md and a first docs/context-map.md, from the templates below.

5. Explore, per context. Use Example Mapping:

  • the rules, and one or two examples per rule;
  • the open questions, which go in the context's Open questions and never into a rule.

Ask the consistency question: does this have to be consistent the moment the user acts, or can it catch up? Add the invariants with the trap each one avoids.

Build the context's glossary as you go: the terms, their meaning here, the synonyms to avoid.

  • No code columns yet. "In code" and "Codified in" don't exist until /gyos:init decides the language of code, so don't guess identifiers.
  • Show, then write. Show the context's entry, glossary included, and write it to the map once the user has seen it. A session that stops here loses nothing.

6. Strategize.

  • Classify each context as core, supporting or generic.
  • For a generic context, recommend buying it or using a library, behind a port.
  • For a supporting one, recommend keeping it simple.
  • Say what the classification means for how much modelling it gets.

7. Connect.

  • Map the relationships between contexts, and how each will look in a modular monolith.
  • Name every junction (a rule that spans two contexts). Say it belongs to neither context, and ask who owns it. The default owner is the host app's composition root.
  • Record each junction once, in the map's Junctions section, with a one-line reason. /gyos:init writes its ADR.

8. Stop and hand over.

Stop when:

  • a few stories per process are covered;
  • each context's purpose fits in two sentences;
  • the remaining open questions are minor.

Then:

  • summarize: the contexts with their classification, the junctions, the number of open questions, and the files written;
  • name the next step: /gyos:init, which picks up from here, or more exploration.

What you write

Two files, and nothing else:

FileTemplateWhen
docs/product-brief.md${CLAUDE_PLUGIN_ROOT}/templates/docs/product-brief.mdAt checkpoint A; updated after
docs/context-map.md${CLAUDE_PLUGIN_ROOT}/templates/docs/context-map.mdAt checkpoint A; each context's entry updated as you explore it
  • Each context's draft glossary and examples live in its context-map entry. /gyos:init moves them into the context's skill and module, and replaces them in the map with links:
    • the glossary becomes the skill's glossary.md;
    • the examples become promises not built yet in the skill's scenarios.md; /gyos:feature turns each one into a .feature file (BDD + TDD) or a written promise as it builds it.
  • Every file you write starts with the GYOS header, as in the templates. It carries the version from ${CLAUDE_PLUGIN_ROOT}/.claude-plugin/plugin.json and the date, and says the file is a draft model, not a specification.

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.