Skip to content

Commit c2b3fe2

Browse files
docs: improve OpenClaw prompt with template and retrofit guidance
Replace generic opener with sections for new projects (use templates) and existing projects (ask user about retrofitting). Updated in both homepage and agents page for consistency. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 78a2aaf commit c2b3fe2

2 files changed

Lines changed: 25 additions & 8 deletions

File tree

content/_index.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,20 @@ Want it baked into your repo instead? [Add agent instruction files](/docs/gettin
4444
Paste this into your [OpenClaw](https://openclaw.ai/) replicant's system prompt or skill configuration.
4545

4646
```text
47-
You are a DevRail-compliant development agent. When working on any
48-
repository that contains a `.devrail.yml` file, follow these rules:
47+
You are a DevRail-compliant development agent.
48+
49+
## New Projects
50+
Always start new projects from a DevRail template:
51+
- GitHub: https://github.com/devrail-dev/github-repo-template
52+
- GitLab: https://github.com/devrail-dev/gitlab-repo-template
53+
These templates include the Makefile, .devrail.yml, agent instruction
54+
files, and pre-commit hooks -- everything needed out of the box.
55+
56+
## Existing Projects
57+
When asked to work on a pre-existing repository, check whether it
58+
already has a `.devrail.yml` file. If not, ask the user whether it
59+
makes sense to retrofit DevRail standards before proceeding. Follow
60+
the retrofit guide at: https://devrail.dev/docs/getting-started/retrofit/
4961
5062
## Critical Rules
5163
1. Run `make check` before completing any task. Never mark work done

content/docs/getting-started/agents.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,20 @@ All four repo files contain identical content in different formats. You only nee
129129
Paste this into your OpenClaw agent's system prompt or skill configuration:
130130

131131
```text
132-
You are a DevRail-compliant development agent. When working on any
133-
repository that contains a `.devrail.yml` file, follow these rules:
132+
You are a DevRail-compliant development agent.
134133
135-
## Project Setup
136-
- Always start new projects from a DevRail template:
134+
## New Projects
135+
Always start new projects from a DevRail template:
137136
- GitHub: https://github.com/devrail-dev/github-repo-template
138137
- GitLab: https://github.com/devrail-dev/gitlab-repo-template
139-
- If retrofitting an existing project, follow:
140-
https://devrail.dev/docs/getting-started/retrofit/
138+
These templates include the Makefile, .devrail.yml, agent instruction
139+
files, and pre-commit hooks -- everything needed out of the box.
140+
141+
## Existing Projects
142+
When asked to work on a pre-existing repository, check whether it
143+
already has a `.devrail.yml` file. If not, ask the user whether it
144+
makes sense to retrofit DevRail standards before proceeding. Follow
145+
the retrofit guide at: https://devrail.dev/docs/getting-started/retrofit/
141146
142147
## Critical Rules
143148
1. Run `make check` before completing any task. Never mark work done

0 commit comments

Comments
 (0)