discover
Skill4 starsChanged 3 months agoMITView on GitHub
Scan the current repository for tech-stack, conventions, test setup, and anti-patterns. Writes .claude/rules/project-conventions.md, which Claude Code loads into every session, so spec generation and implementation work from the project's own conventions. Run once per project, re-run when stack changes.
63 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/Employee-Self-Service-Agent-Developer-Kittheir own version, first seen Nov 29, 2026
- mentealterne/GYOStheir own version, first seen Nov 29, 2026
- NVIDIA/AutoFAtheir own version, first seen Nov 29, 2026
- saleh-alhaddad/itqan-engineeringtheir own version, first seen Nov 28, 2026
- rafaelghif/antigravity-agents-coretheir own version, first seen Nov 22, 2026
- rafaym1/scholarship-desktheir own version, first seen Nov 16, 2026
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.
LambenthanSkilldaily-arxiv
每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新
Also in 5 projects that use this
LambenthanSkillexp-eval
实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges
Also in 5 projects that use this
skyllwtSkillexp-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
skyllwtSkillexp-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-EnceladusSkillpaper-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
Other versions63 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 63
- skyllwt/OmegaWiki★ 1.7ksame name
- DAIR-AutoResearch/AutoSci★ 1.7ksame name
- PKU-DAIR/AutoSci★ 1.7ksame name
- skyllwt/AutoSci★ 1.7ksame name
- suboss87/FDEOps★ 769same name
- anombyte93/prd-taskmaster★ 608same name
- zaxbysauce/opencode-swarm★ 549same name
- ZaxbyHub/opencode-swarm★ 548same name
- qbeka/jev-job-search★ 401same name
- hsantanna88/clo-author★ 262same name
53 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 56 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 74
Use Read, Bash (find/grep/cat), and Write only
- Distinctive: line 75
No external network calls
“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.
Files
/ticket-flow:discover — Project-Convention Discovery
Args: none — operates on current working directory.
What it does
Codifies the answer to "what conventions does this project follow?" into a single file that the harness itself loads. Claude Code discovers every .md under .claude/rules/ recursively and loads a rule without a paths: frontmatter key at launch, at the same priority as .claude/CLAUDE.md (memory docs) — so the conventions are in context for /ticket-flow:spec, /ticket-flow:implement and any plain session, without a skill having to fetch them. (Earlier versions wrote docs/PROJECT-CONVENTIONS.md, which only helped whoever remembered to read it.)
Adapted from Weselow Claude-Protocol's /project-discovery skill, but stripped of the rule-injection mechanism — output is a doc, not a hook.
Output
.claude/rules/project-conventions.md — sections below. An existing file is not overwritten: the script reports it and exits 1 — re-run with --force to replace it (there is no interactive prompt, so an agent must not read that exit code as a failure). A leftover docs/PROJECT-CONVENTIONS.md from an earlier run is reported and left alone — no skill reads it any more; merge what you want to keep and delete it.
Sections in the rule file
- Tech Stack — frameworks/languages/versions detected from manifest files
- Sources:
package.json,Cargo.toml,pyproject.toml/requirements.txt,go.mod,Package.swift,pom.xml,Gemfile,composer.json,*.csproj - Output:
Language: Swift 6.x · Framework: SwiftUI + AppKit · Min target: macOS 14+
- Sources:
- Build/Test/Lint commands — extracted from the manifests + common scripts (
Makefile,package.jsonscripts,xcodebuildinvocations in CI configs) - Naming conventions — sample 20 files, derive patterns
- SwiftUI:
*View.swift,*Model.swift, etc. - JS/TS:
kebab-casevscamelCasefor files - Python: PEP 8 module names
- SwiftUI:
- Testing setup — test framework + folder convention
Tests/+ XCTest +*Tests.swift|*Tests.m(Apple)tests/+ pytest +test_*.py(Python)__tests__/+ Jest (JS)
- Anti-patterns specific to this project — what not to do (extracted from existing CLAUDE.md, README, comments saying "// DO NOT")
Steps
The skill is a thin wrapper around skills/discover/discover.sh. The script:
- Detects git root (aborts if not a git repo).
- Reads manifests (
package.json,Cargo.toml,pyproject.toml,go.mod,Package.swift,Gemfile,composer.json,pom.xml,build.gradle,*.csproj,mix.exs,Makefile,Dockerfile) and extracts versions where parseable (jq forpackage.json; grep for the rest). - Counts top file extensions via
git ls-files, samples up to 10 basenames per non-noise extension to surface naming conventions. - Reads
CLAUDE.md/AGENTS.md/README.md— emits a line per file with section headers, and pulls "DO NOT / never / avoid" lines as the anti-pattern list. - Detects
Tests/,tests/,__tests__/,test/,spec/directories + counts test-shaped files (*_test.*,*Tests.*, etc.) via a singlegit ls-files | grep -Epass. - Writes
.claude/rules/project-conventions.mdvia a.tmpfile (atomic move), creating.claude/rules/if needed.
Commit the file. A worktree checkout carries only tracked files, so an untracked rule never reaches the worktree agents that /ticket-flow:flow --parallel dispatches — the audience the rule exists for. The script says so when the file is not tracked yet; git add .claude/rules/project-conventions.md closes it.
Invocation pattern:
"${CLAUDE_PLUGIN_ROOT}/skills/discover/discover.sh" # write .claude/rules/project-conventions.md
"${CLAUDE_PLUGIN_ROOT}/skills/discover/discover.sh" --force # overwrite without prompt
"${CLAUDE_PLUGIN_ROOT}/skills/discover/discover.sh" --stdout # print, don't writeSandbox-safe (no network, only writes the output doc).
When to run
- Once after
/ticket-flow:initon a new project - Whenever tech stack changes significantly (new language, new framework, major version bump)
- Manually if
/specoutput starts drifting from project conventions
When NOT to run
- On every spec — that's the point of having this as a one-shot
- On non-code repos (docs-only, prose) — not useful
- On personal scratch repos where conventions don't exist
Implementation notes
- Use
Read,Bash(find/grep/cat), andWriteonly - No external network calls
- Output should be readable as a teaching doc for a new contributor, not a machine-only format
- The anti-pattern section is a keyword scrape and is labelled as candidates in the output — markdown table rows, headings and over-long prose are filtered out, but a wrong bullet is still cheaper to delete by hand than to leave loaded into every session
- ≤ 250 lines target — a hard budget, not a style note: the file is loaded into every session in this project, so every line is paid for repeatedly. If the scan runs longer, the project has too many conventions and most won't be useful as recall context; the script prints a warning above the limit
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
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.

