Skip to content
Agentmart
Submit a tool

discovery

Investigate a topic, then decompose it into backlog tickets grouped by epic.

Skill by charleshall888

IndexedMIT★ 3
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/charleshall888-discovery

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Investigate a topic, then decompose it into backlog tickets grouped by epic. Ends at tickets, not a spec. Needs a topic argument — without one, use dev.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/discovery

What's inside

Skill name
discovery
Description
Investigate a topic, then decompose it into backlog tickets grouped by epic. Ends at tickets, not a spec. Needs a topic argument — without one, use dev.
License
MIT
Instructions
60 lines in SKILL.md · view on GitHub

Files (5)

  • SKILL.md
  • clarify.md · references/
  • decompose.md · references/
  • research.md · references/
  • size-pin.txt · references/

SKILL.md (first lines)

# Discovery

Topic: $ARGUMENTS — required. Empty → stop with "discovery requires a topic argument; for 'what should I work on' or 'next task' routing, use `/cortex-core:dev` instead." Directory: `cortex/research/{{topic}}/`, lowercase-kebab.

## Step 1: Resolve the phase

- No directory → **clarify**.
- `research.md` without `decomposed.md` → **decompose**.
- `decomposed.md` present → complete. Offer a re-run or an update.

Report the phase and offer to continue or restart earlier. If several `cortex/research/*/` lack `decomposed.md`, list them and ask which.

**A re-run from scratch** never overwrites. Use slug `{{topic}}-N` (smallest unused N ≥2). Open the new `research.md` with `superseded:` naming the artifact just before it. Leave the old directory as a record. Repointing `discovery_source:` or archiving is the user's call.

## Step 2: Execute the phase

| Phase | Reference | Artifact |
|-------|-----------|----------|
| Clarify | [clarify.md](${CLAUDE_SKILL_DIR}/references/clarify.md) | none (conversation only) |
| Research | [research.md](${CLAUDE_SKILL_DIR}/references/research.md) | `cortex/research/{{topic}}/research.md` |
| Decompose | [decompose.md](${CLAUDE_SKILL_DIR}/references/decompose.md) | Epic + backlog tickets |

Read **only** the current phase's reference. `${CLAUDE_SKILL_DIR}` resolves only here. Where a reference names a sibling, use the absolute path: **fanout** → `${CLAUDE_SKILL_DIR}/../research/references/fanout.md`; **orchestrator-review** → `${CLAUDE_SKILL_DIR}/../build/references/orchestrator-review.md`.

After each phase, commit `cortex/research/{{topic}}/`, summarize, and go on without asking — except at the gate below.

## Step 3: Research → Decompose gate

One question the user must answer, reached by finishing Research or resuming into Decompose. No decompose work starts until it is answered.

```
cortex-discovery generate-brief --research-md cortex/research/<topic>/research.md \
    --persist-to cortex/research/<topic>/brief.md
```

Non-zero exit, missing file, or failed validation → show the full `## Architecture` section with a warning that names the failure (`brief_generation_failed: <reason>`). Over the advisory word cap → show the brief anyway with a one-line note.

- **`approve`** — go to Decompose.
- **`revise`** — free-text changes to Architecture only. Rework it against the template in `references/research.md` §3, rewrite `### Pieces` then `### How they connect`, show it again, and add one to `revision_round`. Repeat until `approve` or `drop`.
- **`drop`** — a neutral end: the research is enough and needs no tickets, or the user abandons it. Write nothing to `cortex/backlog/`. The artifact stays.
- **`promote-sub-topic`** — the user names a sub-topic. Compose a body via `/backlog-author compose` with a `## Promoted from` section reading exactly `## Promoted from\n\nDiscovery: cortex/research/<current-topic>/`. That section is the only link — no frontmatter pointer, no nested discovery. Create one `needs-discovery` ticket per the backend routing below, then return to this gate.

Log one event per response:

```
cortex-discovery emit-checkpoint-response --topic <topic> --checkpoint research-decompose \
    --response <approve|revise|drop|promote-sub-topic> --revision-round <int>
```

## Backend routing

Before a phase creates tickets, run `cortex-read-backlog-backend` (no arguments):

- `cortex-backlog` → create normally.
- `none` → create nothing. Keep the titles and bodies in `cortex/research/{topic}/decomposed.md` with a one-line note. Write nothing to `cortex/backlog/`.
- Anything else → file as best you can per `backlog.instructions`. If filing fails, show the bodies inline.

Every ticket created carries `discovery_source:` pointing at the research artifact; `/cortex-core:refine` loads it as background.

From charleshall888/cortex-command, MIT.

More from charleshall888/cortex-command

Signals

Stars
3
Forks
0
Open issues
0
Last commit (this folder)
Sep 22, 2026 (1 month ago)
Last release
Oct 5, 2026 (24 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from charleshall888

Cite this page

discovery skill. Agent Mart. https://agentmart.dev/skills/charleshall888-discovery (last updated 2026-10-24)