setup-project-config
Skill2 starsChanged 13 days agoMITView on GitHub
Configures a repo for these skills: writes per-topic settings to docs/agents/*.md (SDD tool, code structure, and project-scoped values for installed MCPs - Atlassian, Azure DevOps, Sentry, Playwright) and adds an `## Agent skills` pointer block to CLAUDE.md or AGENTS.md. Credentials stay in the global ~/.env.mcp-* store. Use when setting up skills in a repo for the first time, when a skill says to run setup-project-config, or when asked to update project settings (e.g. change Jira project key, framework changed).
- Reads credentials
In this repository18 other files it gives its agents.
- ado-open-prSkill
- ado-pr-code-reviewSkill
- ado-pr-resolve-commentsSkill
- ado-pr-teams-notifySkill
- agent-playtestSkill
- explain-diff-htmlSkill
- generate-pr-notesSkill
- git-commit-conventional-strictSkill
- install-atlassian-mcpSkill
- install-azure-devops-mcpSkill
- install-playwright-mcpSkill
- install-sentry-mcpSkill
- prd-to-sdd-specSkill
- sdd-qa-to-ticketSkill
- spec-recalibrateSkill
- sync-api-specSkill
- tech-plan-to-ticketSkill
- tech-plan-to-wikiSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
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
- could be automatic: a setting could enforce it
- Distinctive: line 40
Read what exists; don't assume.
- Very specific: line 46
Only installed MCPs get a topic.
- Very specific: line 51
If the user named a topic (e.g.
- Very specific: line 64
If .agent-settings/project-config.md exists, show this mapping before writing and keep every user value:
- Very specific: line 73
After writing, offer to delete the legacy file and the then-empty .agent-settings/ folder.
- Distinctive: line 82
If CLAUDE.md exists, edit it.
- Distinctive: line 84
If neither exists, ask which one to create.
- Very specific: line 86
Never create AGENTS.md when CLAUDE.md exists (or vice versa).
- Distinctive: line 105
If neither is available, leave the URL cell blank.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Setup Project Config
Install this skill
npx skills add jamesyang124/agent-skills --skill setup-project-config -gScaffold the per-repo settings the other skills read. Each topic is one small file under docs/agents/,
committed with the repo so teammates share it. Different repos get different files; a topic that does not
apply (no Sentry MCP, no SDD tool) gets no file.
| File | Holds | Read by |
docs/agents/sdd.md | SDD tool + its commands | ado-open-pr, spec-recalibrate, tech-plan-to-wiki, sdd-qa-to-ticket |
docs/agents/code-structure.md | language, framework, router/handler/DTO dirs, API prefix, doc style | sync-api-spec (required) |
docs/agents/atlassian.md | Confluence space, parent pages, Jira project key / issue type | sync-api-spec, tech-plan-to-wiki, tech-plan-to-ticket |
docs/agents/azure-devops.md | organization, project, default repo | Azure DevOps MCP users |
docs/agents/sentry.md | org slug, project slug | Sentry MCP users |
docs/agents/playwright.md | base URL, allowed domains, user-agent | Playwright MCP users |
Secrets never go in these files. Tokens, PATs, passwords and connection URLs stay in
~/.env.mcp-<name> (or OAuth). A value in docs/agents/ is a non-secret per-repo override; blank or
absent → the global env value stands.
This is a prompt-driven skill, not a script. Explore, present what you found, confirm, then write.
Process
1. Explore
Read what exists; don't assume.
CLAUDE.md/AGENTS.mdat the repo root: does either exist? Is there already an## Agent skillsblock?docs/agents/: which topic files already exist? Existing ones are updated, not recreated.- Legacy
.agent-settings/project-config.md: if present, migrate it (step 2a). - Installed MCPs:
.mcp.json,.claude/mcp.json(mcpServerskeys),.vscode/mcp.json(serverskeys). Only installed MCPs get a topic. Warn if one is installed but its~/.env.mcp-<name>/ OAuth is missing. git remote -v: adev.azure.com/visualstudio.comremote pre-fillsazure-devops.md.- SDD tool:
.specify/,.speckitorspec-kit.json→ spec-kit;openspec/,.openspecoropenspec.json→ openspec. - Code structure: follow references/code-scan.md.
If the user named a topic (e.g. atlassian), explore and ask only for that topic.
2. Present findings and ask
Summarise what was detected and what is missing. Then take the topics in order: one topic, one answer, then the next. Lead each with the detected or recommended value so the user can accept it in a word. Skip a topic when exploration settled it or it does not apply.
The fields per topic are the ones in its template under templates/. For Atlassian parent
pages, ask for up to 3 name, page ID pairs and stop at the first blank.
2a. Legacy migration
If .agent-settings/project-config.md exists, show this mapping before writing and keep every user value:
| Legacy section | New file |
## MCP: atlassian (or older ## Confluence + ## Jira) | atlassian.md |
## MCP: azure-devops / sentry / playwright | azure-devops.md / sentry.md / playwright.md |
## SDD Tool | sdd.md |
## Code Structure + ## Documentation Format | code-structure.md |
After writing, offer to delete the legacy file and the then-empty .agent-settings/ folder.
3. Confirm
Show a draft of each topic file and of the ## Agent skills block. Let the user edit before writing.
4. Write
Pick the rules file:
- If
CLAUDE.mdexists, edit it. - Else if
AGENTS.mdexists, edit it. - If neither exists, ask which one to create; don't pick for them.
Never create AGENTS.md when CLAUDE.md exists (or vice versa). If an ## Agent skills block already
exists, update it in place; don't touch the surrounding sections.
The block has one line per topic file written:
## Agent skills
- SDD: spec-kit. See `docs/agents/sdd.md`.
- Code structure: Go / Gin. See `docs/agents/code-structure.md`.
- Atlassian: Jira PROJ, Confluence space ENG. See `docs/agents/atlassian.md`.
- Azure DevOps: my-org/my-project. See `docs/agents/azure-devops.md`.Then write each topic file from its template. Re-runs rewrite only the topics that changed and keep hand edits elsewhere.
For the Atlassian parent-page table, build each URL as {base}/spaces/{Space Key}/pages/{ID}, where
base is the file's Base URL override if present, else CONFLUENCE_URL from ~/.env.mcp-atlassian.
If neither is available, leave the URL cell blank.
5. Done
Tell the user which files were written and which skills now read them (table above). They can edit
docs/agents/*.md directly later; re-run this skill only to add a topic or rescan the code structure.
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.

