feat(prompt): instruct agents to offload out-of-scope work via SuggestImprovement

This commit is contained in:
mika kuns
2026-06-04 16:10:39 +02:00
parent 519bfbe6b3
commit f60becaf06
2 changed files with 20 additions and 0 deletions

View File

@@ -75,6 +75,11 @@ public static class PromptFiles
- Prefer three similar lines over a premature abstraction. Don't build for
hypothetical future needs.
## Out-of-scope improvements
If you notice worthwhile work that is genuinely outside this task's scope
(a refactor, a follow-up, tech debt), do NOT do it here. File it with
SuggestImprovement(title, description) and stay focused on the task at hand.
## Working in the repo
- Read a file before editing it. Match the conventions already in this codebase
they override generic defaults.

View File

@@ -0,0 +1,15 @@
using ClaudeDo.Data;
using Xunit;
namespace ClaudeDo.Data.Tests;
public class SystemPromptTests
{
[Fact]
public void SystemDefault_mentions_SuggestImprovement_offload()
{
var prompt = PromptFiles.DefaultFor(PromptKind.System);
Assert.Contains("Out-of-scope improvements", prompt);
Assert.Contains("SuggestImprovement", prompt);
}
}