Skip to content

Commit ee9152b

Browse files
authored
Merge pull request #5 from plotday/feat/claude-md
Add CLAUDE.md on "plot agent create"
2 parents 34b8491 + 0ac9a95 commit ee9152b

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.changeset/salty-deer-joke.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@plotday/sdk": patch
3+
---
4+
5+
Add a CLAUDE.md on "plot agent create"

sdk/cli/commands/create.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,15 @@ export default class extends Agent {
193193
console.warn("Warning: Could not copy AGENTS template");
194194
}
195195

196+
// Copy CLAUDE.md from template
197+
const claudeTemplatePath = path.join(__dirname, "..", "templates", "CLAUDE.template.md");
198+
try {
199+
const claudeContent = fs.readFileSync(claudeTemplatePath, "utf-8");
200+
fs.writeFileSync(path.join(agentPath, "CLAUDE.md"), claudeContent);
201+
} catch (error) {
202+
console.warn("Warning: Could not copy CLAUDE template");
203+
}
204+
196205
// Create .gitignore
197206
const gitignore = `node_modules/
198207
build/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@AGENTS.md

0 commit comments

Comments
 (0)