profile-repo
Skill4 starsChanged 3 months agoMITView on GitHub
Generate or load the per-repo profile (`.claude/skills/repo-profile.md`) that `create-issue`, `implement-issue` and `merge-pr` READ for the repo facts they would otherwise hardcode — commit identity, build/test/format commands, labels, merge style, conflict hot-spots. Use when no profile exists, to PORT those skills to another repository, or to refresh after the toolchain, labels or CI changed: "set up the repo profile", "configure this repo for the issue skills", "make these skills work in my other repo", "regenerate the profile", « configure le profil du repo », « fais marcher create-issue dans ce repo ». Does NOT file issues, implement code, merge PRs, or WRITE labels/templates/settings (setup-repo).
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/tagout.mdcCursor rule
- auto-devSkill
- create-issueSkill
- create-prSkill
- debug-issueSkill
- deliver-issueSkill
- implement-issueSkill
- merge-prSkill
- migrate-legacySkill
- review-followupsSkill
- review-sessionsSkill
- setup-repoSkill
- triage-backlogSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 54
Run hands-off. The show path is a file read — no need for a task list or precondition ceremony.
- Very specific: line 80
Every <!-- TODO: … --> placeholder you left goes in Assumed · skipped · unverified, by name.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Resolve the repo profile (config for the issue/PR lifecycle skills)
create-issue, implement-issue, and merge-pr are generic workflows wrapped around a thin layer of
repo-specific facts — the commit author line, how to build and test, which label means "high
priority", whether the repo squashes or rebases, which files conflict and how to resolve them. Hardcoding
those welds the skills to one repo. This skill lifts them into a single committed file,
.claude/skills/repo-profile.md, that the three skills read at their preconditions step. Drop the
four skills into a new repo, run this once, and the lifecycle skills speak that repo's language.
The profile is data, not a skill — plain markdown with no SKILL.md, so the loader ignores it; being
committed, it travels with the repo. Because it exists, the lifecycle skills read it with a plain cat
and only fall back to this skill when it's missing — so most of the time this skill isn't even invoked.
Do this
A bundled script does the deterministic work so you spend tokens on judgement, not probing. Run it
from anywhere in the repo (it anchors to the git root). <skill-dir> is this skill's base directory
— given when the skill loads:
bash "<skill-dir>/scripts/repo-profile.sh" show- It printed the profile (and no
--refreshwas asked) → you're done. Relay the headline values (repo slug, commit identity, build/test/format commands, integration style) so the caller sees what's in force. Don't regenerate. - It printed
NO_PROFILE(exit 3), or the user asked to--refresh/ "set up" / "regenerate" → this is the rare generation path. Readreferences/generating.mdand follow it. In short: runscripts/repo-profile.sh detect, fillreferences/profile-template.mdfrom the facts it emits, write the result to.claude/skills/repo-profile.md, and report what you wrote + every TODO you left.
Autonomy contract
Run hands-off. The show path is a file read — no need for a task list or precondition ceremony. The
generation path is best-effort inference, not interrogation: fill what detect proves, and for anything
it couldn't (a TODO: line in its output) write a clearly-marked <!-- TODO: ... --> placeholder and
flag it in the report rather than stopping. A profile with a few honest TODOs beats no profile; never
invent a value you couldn't verify — a wrong build command or commit identity is worse than a flagged
blank. Stop only for a real blocker: not inside a git repo (nothing to profile — detect exits 4), or
gh unauthenticated and the gh-only facts can't be read another way (tell the user to run
! gh auth login -h github.com).
Inputs
--refresh— regenerate even if a profile exists (re-detect everything; preserve any human-edited TODO answers you can still see in the current file).- A path argument — profile a repo other than the current directory (pass it as the
[dir]arg to the script:repo-profile.sh show /path/to/repo).
Recap
Close with the shared recap shape — ../_shared/recap.md. It owns the four
blocks (verdict · What happened · Artifacts · Assumed · skipped · unverified, where
None is a required answer rather than an omission) and the Next line, which is read off this
skill's row in that file's hand-off table instead of being decided again here. Everything below is
only what profile-repo adds on top of them.
- Say which path ran —
showread a committed profile back, or the generation path wrote one. They produce very different confidence, and the caller cannot tell them apart from the file alone. - Every
<!-- TODO: … -->placeholder you left goes in Assumed · skipped · unverified, by name. An honest TODO is the whole point of the degraded generation path; an unmentioned one is a wrong value waiting to be trusted. - Relay the headline facts (default branch, build/test commands, commit identity) in What happened — the lifecycle skills act on those, and a wrong one is worse than a flagged blank.
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.

