diff --git a/.cursor/rules/general.mdc b/.cursor/rules/general.mdc index 1451d732d..cb01770d3 100644 --- a/.cursor/rules/general.mdc +++ b/.cursor/rules/general.mdc @@ -30,6 +30,7 @@ alwaysApply: true - In any explanatory text (commit messages, PR descriptions, documentation, code comments, etc.), describe only what exists in the final snapshot: never mention symbols or concepts that were added and later removed or renamed along the way, even if they mattered during the work. If you cannot confirm that an identifier or feature name you are about to write exists in the final diff or the current codebase, drop that statement. - Use heredoc for multi-line command input (e.g., `git commit -F -`, `gh pr create --body-file -`). - Put temporary files in `.tmp`; use `/tmp` only for files that must live outside the repo. +- `AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, `.cursor/rules/general.mdc`, and `.gemini/styleguide.md` are generated from `AGENTS_EXTRA.md` and overwritten on every `wbfy` run; edit only `AGENTS_EXTRA.md` to change agent instructions. - Tool versions (node, bun, and others) are pinned in `mise.toml`; run `mise install` after changing it, and never install those tools globally instead. - `bunfig.toml` uses Bun's isolated linker, so only declared dependencies resolve. If an import fails to resolve, declare that package in the `package.json` that imports it; never switch `linker` to `hoisted` or add to `publicHoistPattern` to work around it. diff --git a/AGENTS.md b/AGENTS.md index 3e3b04eb0..2071e2ce0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -24,6 +24,7 @@ - In any explanatory text (commit messages, PR descriptions, documentation, code comments, etc.), describe only what exists in the final snapshot: never mention symbols or concepts that were added and later removed or renamed along the way, even if they mattered during the work. If you cannot confirm that an identifier or feature name you are about to write exists in the final diff or the current codebase, drop that statement. - Use heredoc for multi-line command input (e.g., `git commit -F -`, `gh pr create --body-file -`). - Put temporary files in `.tmp`; use `/tmp` only for files that must live outside the repo. +- `AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, `.cursor/rules/general.mdc`, and `.gemini/styleguide.md` are generated from `AGENTS_EXTRA.md` and overwritten on every `wbfy` run; edit only `AGENTS_EXTRA.md` to change agent instructions. - Tool versions (node, bun, and others) are pinned in `mise.toml`; run `mise install` after changing it, and never install those tools globally instead. - `bunfig.toml` uses Bun's isolated linker, so only declared dependencies resolve. If an import fails to resolve, declare that package in the `package.json` that imports it; never switch `linker` to `hoisted` or add to `publicHoistPattern` to work around it. diff --git a/CLAUDE.md b/CLAUDE.md index 45de31001..d2adb6026 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -24,6 +24,7 @@ - In any explanatory text (commit messages, PR descriptions, documentation, code comments, etc.), describe only what exists in the final snapshot: never mention symbols or concepts that were added and later removed or renamed along the way, even if they mattered during the work. If you cannot confirm that an identifier or feature name you are about to write exists in the final diff or the current codebase, drop that statement. - Use heredoc for multi-line command input (e.g., `git commit -F -`, `gh pr create --body-file -`). - Put temporary files in `.tmp`; use `/tmp` only for files that must live outside the repo. +- `AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, `.cursor/rules/general.mdc`, and `.gemini/styleguide.md` are generated from `AGENTS_EXTRA.md` and overwritten on every `wbfy` run; edit only `AGENTS_EXTRA.md` to change agent instructions. - Tool versions (node, bun, and others) are pinned in `mise.toml`; run `mise install` after changing it, and never install those tools globally instead. - `bunfig.toml` uses Bun's isolated linker, so only declared dependencies resolve. If an import fails to resolve, declare that package in the `package.json` that imports it; never switch `linker` to `hoisted` or add to `publicHoistPattern` to work around it. diff --git a/GEMINI.md b/GEMINI.md index 45ecdf52d..4fec61894 100644 --- a/GEMINI.md +++ b/GEMINI.md @@ -24,6 +24,7 @@ - In any explanatory text (commit messages, PR descriptions, documentation, code comments, etc.), describe only what exists in the final snapshot: never mention symbols or concepts that were added and later removed or renamed along the way, even if they mattered during the work. If you cannot confirm that an identifier or feature name you are about to write exists in the final diff or the current codebase, drop that statement. - Use heredoc for multi-line command input (e.g., `git commit -F -`, `gh pr create --body-file -`). - Put temporary files in `.tmp`; use `/tmp` only for files that must live outside the repo. +- `AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, `.cursor/rules/general.mdc`, and `.gemini/styleguide.md` are generated from `AGENTS_EXTRA.md` and overwritten on every `wbfy` run; edit only `AGENTS_EXTRA.md` to change agent instructions. - Tool versions (node, bun, and others) are pinned in `mise.toml`; run `mise install` after changing it, and never install those tools globally instead. - `bunfig.toml` uses Bun's isolated linker, so only declared dependencies resolve. If an import fails to resolve, declare that package in the `package.json` that imports it; never switch `linker` to `hoisted` or add to `publicHoistPattern` to work around it. diff --git a/packages/wbfy/src/generators/agents.ts b/packages/wbfy/src/generators/agents.ts index eda6e2416..d6d7744ec 100644 --- a/packages/wbfy/src/generators/agents.ts +++ b/packages/wbfy/src/generators/agents.ts @@ -144,7 +144,8 @@ function generateAgentInstruction( - Always create new commits; avoid \`--amend\`.${prTemplateInstruction}${issueTemplateInstruction} - In any explanatory text (commit messages, PR descriptions, documentation, code comments, etc.), describe only what exists in the final snapshot: never mention symbols or concepts that were added and later removed or renamed along the way, even if they mattered during the work. If you cannot confirm that an identifier or feature name you are about to write exists in the final diff or the current codebase, drop that statement. - Use heredoc for multi-line command input (e.g., \`git commit -F -\`, \`gh pr create --body-file -\`, \`gh issue create --body-file -\`). -- Put temporary files in \`.tmp\`; use \`/tmp\` only for files that must live outside the repo.${miseInstruction}${isolatedInstallInstruction}${fnoxInstruction}${cloudflareInstruction}${railwayInstruction}${playwrightTestServerInstruction} +- Put temporary files in \`.tmp\`; use \`/tmp\` only for files that must live outside the repo. +- \`AGENTS.md\`, \`CLAUDE.md\`, \`GEMINI.md\`, \`.cursor/rules/general.mdc\`, and \`.gemini/styleguide.md\` are generated from \`AGENTS_EXTRA.md\` and overwritten on every \`wbfy\` run; edit only \`AGENTS_EXTRA.md\` to change agent instructions.${miseInstruction}${isolatedInstallInstruction}${fnoxInstruction}${cloudflareInstruction}${railwayInstruction}${playwrightTestServerInstruction} ${generateAgentCodingStyle(rootConfig, allConfigs)} `