Ryan's fork of dev-centr/agent-rules. Contribute portable changes to dev-centr/agent-rules. This fork (AMDphreak/agent-rules) carries personal defaults on top of that story.
Dev-Centr product behavior (when the app acts on behalf of the user) does not live here. It belongs in dev-centr/devcentr-agent-rules.
flowchart TB
subgraph forkable [agent-rules forkable]
G[general/]
P[profiles/]
R[RULES.md]
M[README.md]
end
subgraph product [devcentr-agent-rules]
X[Dev-Centr product rules]
end
subgraph personal [Optional local only]
Z[CODE_ROOT shortcut or symlink]
end
subgraph other [dev-centr/templates]
W[workspaces payloads docs]
end
M --> P
R --> P
R --> G
Z -.-> forkable
other -->|README links| forkable
product -.->|used by Dev-Centr app| other
- agent-rules (this repo family): forkable end-user instructions and profiles.
- devcentr-agent-rules: rules for when the Dev-Centr app acts on behalf of the user (separate repository).
- templates: project templates; README there links to forkable agent rules, not to personal copies.
- Clone into your code hive, for example
$CODE_ROOT/github.com/<your-username>/.forks/agent-rules(seegeneral/folder-schema.md). - Supported compose/watch: install
dev-centr/rules-manager. Setrules_repo_pathto this clone. Hostname →laptop/desktoplives in rules-manager config. Output:$CODE_ROOT/agent-rules.composed.md(never commit). - Temporary path hack only: a junction such as
…/AMDphreak/agent-rules→.forks/agent-rulesmay exist for short paths; do not require it once rules-manager is configured. - Use
profiles/laptop.md/profiles/desktop.md(constants) andprofiles/*.overlay.md(machine-only bullets). Templatesmy-laptop.md/my-desktop.mdremain for forks that rename profiles. RULES.mdis written for the agent and must stay portable (no hive/drive letters). Paste onlyRULES.mdinto Cursor User Rules. Cursor Settings User Rules sync across machines.- This-machine overlay (hive path,
CODE_ROOT, overlay bullets): put in%USERPROFILE%\.cursor\rules\machine.mdc(alwaysApply: true). That home-dir file is local and does not sync. Do not pasteagent-rules.composed.mdorprofiles/*.overlay.mdinto User Rules. rules-manager may still fill constants into the local composed file for disk consumers.
| Constant | Required? | Purpose |
|---|---|---|
CODE_ROOT |
Yes | Root directory where you clone Git repos (see general/folder-schema.md). |
ENVIRONMENT |
Yes | windows, mac, or linux — selects general/windows.md, general/mac.md, or general/linux.md. |
GITHUB_USER |
No | Your username for path examples and org layouts. |
ISSUES_REPO |
No | Path to your .issues repo if you use that workflow. |
If your AI agent has difficulty reading multiple files from disk or refuses to follow the "1-step assembly" instructions in MAIN.md, paste RULES.md (portable) into User Rules. Machine constants stay in %USERPROFILE%\.cursor\rules\, not in a file:// hive path.
When you paste RULES.md into your agent and define $AGENT_RULES_PATH, you are commanding the AI to perform a batched semantic read of all foundational modules simultaneously using its native tools (e.g., view_file, read_file). This prevents multi-turn ping-pong delays and avoids the common truncation issues associated with traditional CLI cat output.
The agent will automatically pull:
profiles/<infer-profile-name>.mdgeneral/global.mdgeneral/environment.mdgeneral/<windows|mac|linux>.mdgeneral/creator.mdgeneral/folder-schema.md(andgeneral/documentation.mdwhen the task is docs). Heavy playbooks are Cursor skills — teamdev-centr/agent-rules/skills/CATALOG.md.
Create $CODE_ROOT/machine.md (preferred) or legacy $CODE_ROOT/MEMORIES.md for workstation facts (see Machine-local memories below). Do not commit per-repo copies.
For Dev-Centr automation acting on behalf of the user, the product should load rules from devcentr-agent-rules, not from this forkable repo.
- Index:
CHANGELOG.adoc - Details:
changelog-details/ - Upstream (schema rename
RULES.md→user.md,MEMORIES→machine.md, harness layer): https://docs.devcentr.org/agent-rules/changelog.html
Prefer $CODE_ROOT/machine.md (upstream harness-neutral name). Legacy $CODE_ROOT/MEMORIES.md still works and stays gitignored. Harness wiring: $CODE_ROOT/harness.md. Cursor adapter: %USERPROFILE%\.cursor\rules\machine.mdc (does not sync).
The concrete $CODE_ROOT for this PC lives in Cursor ~/.cursor/rules and profiles/, not in User Rules.
Committed template on this fork: link:MEMORIES.example.md[MEMORIES.example.md]. Upstream uses machine.example.md / harness.example.md.
Do not commit per-repo MEMORIES.md / machine.md. Project facts → AGENTS.md + docs.
Example line:
Flutter SDK: `C:\flutter-sdk\flutter\bin` — refresh PATH if `flutter` missing (counter: 1)
Project templates (workspaces, payloads, template docs) live in dev-centr/templates. That repo links to agent rules here; it should not embed a second copy of personal rules.
Add a license file if you want this fork to be reusable by others.