setup-dkstack
Skill1 starsChanged 19 days agoMITView on GitHub
Use when a repository does not point to dkstack yet, or its pointer is broken or out of date. Connects a new or an existing repository to dkstack: adds or merges AGENTS.md, makes each agent client read it, installs the skills with the owner's OK and checks the result. Triggers: set up dkstack, add dkstack, use dkstack here.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- apply-architectureSkill
- assess-threatsSkill
- bootstrapSkill
- chart-routeSkill
- clarify-intentSkill
- code-reviewSkill
- domain-glossarySkill
- improve-agentsSkill
- investigate-bugSkill
- learnSkill
- make-diagramSkill
- migrate-dataSkill
- model-domainSkill
- plan-workSkill
- profile-performanceSkill
- recover-workSkill
- releaseSkill
- review-blast-radiusSkill
- review-specSkill
- review-standardsSkill
- setup-editorconfigSkill
- setup-labelsSkill
- setup-quality-gatesSkill
- setup-repo-protectionSkill
- setup-supply-chainSkill
- setup-versioningSkill
- start-issueSkill
- tdd-loopSkill
- triageSkill
- ui-designSkill
- ui-reviewSkill
- verify-claimSkill
- write-adrSkill
- write-prSkill
- writing-checkSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 5 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
If the file does not exist, copy sample-AGENTS.md as AGENTS.md.
- Very specific: line 20
If the file exists and has no dkstack URL, merge into it.
- Very specific: line 21
If the file has a dkstack URL on a different version or tag, tell the owner.
- Very specific: line 22
Check each project rule in the existing files against dkstack.
- Very specific: line 23
Remove the project rule. The dkstack rule applies.
- Very specific: line 24
Keep the project rule as an exception.
- Very specific: line 38
Commit the change on a branch with the title docs: set up dkstack.
- Distinctive: line 43
If you can start subagents, use one for step 4 when the existing files have many project rules.
- Distinctive: line 51
Start each subagent with the setting below.
- Distinctive: line 57
If you cannot start subagents, do the steps one at a time in the order of this skill.
- Distinctive: line 61
Do not delete or overwrite project text without the owner's OK.
- Very specific: line 62
Do not change dkstack from the consumer.
- Very specific: line 63
Do not copy dkstack rules into the consumer.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Set up dkstack
Use this skill to make a repository a consumer: a repository whose AGENTS.md points to dkstack. It works in a new repository and in an existing repository. It changes only the agent instruction files. To set up the commit, version and quality rules too, use bootstrap. Bootstrap starts with this skill.
Steps
- Find the current state. Look for these files at the repository root:
AGENTS.md, and the dkstack URL in it.CLAUDE.md, and what it contains.- Other agent instruction files, for example
GEMINI.md,.cursorrules,.cursor/rules/or.github/copilot-instructions.md. CONTEXT.md.
- Select the version. Use the
v1URL from sample-AGENTS.md. Pin avX.Y.Ztag only when the owner asks for it. See the version rule. - Write
AGENTS.md:- If the file does not exist, copy sample-AGENTS.md as
AGENTS.md. Write the project facts that you can find in the code, for example the test command. Do not invent a fact. If you cannot find a fact, leave the placeholder and tell the owner. - If the file exists and has no dkstack URL, merge into it. Add the pointer lines and the Exceptions section of
sample-AGENTS.mdat the top. Move the project text under Project facts. Do not delete project text. - If the file has a dkstack URL on a different version or tag, tell the owner. Change the URL only with the owner's OK.
- If the file does not exist, copy sample-AGENTS.md as
Check each project rule in the existing files against dkstack. For each rule that conflicts with a dkstack rule, ask the owner to select one:
- Remove the project rule. The dkstack rule applies.
- Keep the project rule as an exception. Record the dkstack rule, the project rule and the reason in the Exceptions section. See Precedence.
A project rule that conflicts with safety cannot be an exception. Tell the owner, and remove it only with the owner's OK.
- Make each agent client read
AGENTS.md. Ask the owner which clients the project uses. Then:- Claude Code: if
CLAUDE.mddoes not exist, create it with the one line@AGENTS.md. If it exists, add the line@AGENTS.mdat the top. Do not delete or overwrite its text. Apply step 4 to its rules. - Another client that does not read
AGENTS.md: add one line to its file that tells the agent to read and followAGENTS.md. Apply step 4 to its rules. - A client that reads
AGENTS.mddirectly, for example Codex: no change.
- Claude Code: if
- Optional: install the skills. Ask the owner first. The command downloads and runs a package. Use the commands in the README on the same version as the URL in
AGENTS.md. Tell the owner that installed skills do not update by themselves. After a release, runnpx skills update. - Check the result:
- The dkstack URL in
AGENTS.mdresolves, for example withcurl -fsSI <url>. - Each file from step 5 points to
AGENTS.md. AGENTS.mdkeeps all project text from before. Compare it withgit diff.- Each relative link in the changed files resolves.
- Start a new agent session in the repository. Ask it which file or skill it reads first for a task. The answer names the triage skill. If it does not, fix the pointer files and ask again. If you cannot start a session, tell the owner that this check did not run.
- The dkstack URL in
- Commit the change on a branch with the title
docs: set up dkstack. Follow start-issue and feature branches. - Tell the owner the next step. A new repository often has no commit, version or quality rules. If the repository has none of these rules, continue with bootstrap from its step 2.
Subagents
If you can start subagents, use one for step 4 when the existing files have many project rules. Do steps 1 to 3 yourself. Then start one subagent with a brief that is complete without your context:
- The paths of the existing agent instruction files from step 1.
- The dkstack AGENTS.md and the section indexes that it links.
- What to report: each project rule that conflicts with a dkstack rule, with its file and line and the link to the dkstack rule.
- A word limit, for example 400 words.
- This line: "Report to me only. Do not change files, ask the owner, commit, push, post, approve or merge."
Start each subagent with the setting below. The subagent guide maps each tier to a model.
- Rule comparison: tier medium, effort high.
Then check each conflict at its file and line yourself. Ask the owner about each conflict in step 4. Do steps 5 to 9 yourself.
If you cannot start subagents, do the steps one at a time in the order of this skill.
Rules
- Do not delete or overwrite project text without the owner's OK.
- Do not change dkstack from the consumer. See Changes.
- Do not copy dkstack rules into the consumer. The consumer links to them.
- Record an exception only when the owner approves it.
- A second run of this skill on a set-up repository changes nothing.
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.

