Tooling: auto-apply Universal Code pins to AGENTS.md / prompt instruction files #2
monkeykinghq
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
Add a small tool that auto-applies Universal Code adoption pins to project prompt and agent-instruction files — so adopting the Code is a one-command (or one-click) step instead of hand-editing every repo.
Motivation: we just walked a full multi-repo workspace and prepended the pin line to every
AGENTS.md(andCLAUDE.mdwhere present). That should be productized.Problem
Manual adoption does not scale:
AGENTS.md,CLAUDE.md,.cursorrules, system-prompt snippets, embed copies)Proposal
Ship an adoption / apply tool (name TBD, e.g.
uc-applyoruniversal-code apply) that:Must do
Locate common agent/prompt instruction files in a target path (cwd or
--path), including at least:AGENTS.md/agents.mdCLAUDE.md/Claude.md.cursorrules,GEMINI.md,.github/copilot-instructions.md, etc.Pin (or update) a standard header line at the top of each file:
This project follows the Universal Code vX.Y.Z — read https://github.com/monkeyking-hq/universal-code/blob/main/UC-EMBED-vX.Y.Z.mdIdempotent: if the pin is already present for the requested version, no-op; if an older version pin exists, upgrade the version + link.
Create
AGENTS.mdwith only the pin when no instruction file exists (opt-in or default with--create-agents).Dry-run mode (
--dry-run) listing planned edits before writing.Pin a specific version (
--version 1.0.0) defaulting to latest stable published embed in this repo.Should do
--workspace/ multi-path).Out of scope (for v1 of the tool)
Example UX
Acceptance ideas
Notes
This is a tooling / DX proposal, not a change to the Supreme Principle or Foundational Principles. Implementation language (shell, PowerShell, Go, Node, etc.) open for discussion.
Related: README examples for
AGENTS.mdpin + system-prompt binding (already landed onmain).All reactions