fixed agent getting greedy to do more of what it was asked

This commit is contained in:
DaniBunny
2026-01-31 10:44:12 -08:00
parent c7825d3ac1
commit a601d31730

View File

@@ -56,7 +56,7 @@ PROJECT ROOT
Execute complete scaffolding based on detected or specified environment: Execute complete scaffolding based on detected or specified environment:
1. **Detect Environment** 1. **Detect Environment**
- Check for existing `.github/`, `.opencode/`, `package.json`, etc. - Check for existing `.github/`, `.opencode/`, etc.
- Identify project language/framework stack - Identify project language/framework stack
- Determine if VS Code, OpenCode, or hybrid setup is needed - Determine if VS Code, OpenCode, or hybrid setup is needed
@@ -95,23 +95,19 @@ Execute complete scaffolding based on detected or specified environment:
### `/validate` - Structure Validation ### `/validate` - Structure Validation
Validate existing agentic project structure: Validate existing agentic project structure (focus on structure, not deep file inspection):
1. **Check Required Files** 1. **Check Required Files & Directories**
- [ ] `.github/copilot-instructions.md` exists and is not empty - [ ] `.github/copilot-instructions.md` exists and is not empty
- [ ] `AGENTS.md` exists (if OpenCode CLI used) - [ ] `AGENTS.md` exists (if OpenCode CLI used)
- [ ] Required directories exist - [ ] Required directories exist (`.github/agents/`, `.github/prompts/`, etc.)
2. **Validate File Formats** 2. **Spot-Check File Naming**
- [ ] All `.agent.md` files have proper frontmatter - [ ] Files follow lowercase-with-hyphens convention
- [ ] All `.prompt.md` files have `mode` and `description` - [ ] Correct extensions used (`.agent.md`, `.prompt.md`, `.instructions.md`)
- [ ] All `.instructions.md` files have `applyTo` field
- [ ] All `SKILL.md` files have `name` and `description`
3. **Check Consistency** 3. **Check Symlinks** (if hybrid setup)
- [ ] No conflicting instructions between layers - [ ] Symlinks are valid and point to existing files
- [ ] Symlinks are valid (if used)
- [ ] No orphaned references
4. **Generate Report** 4. **Generate Report**
``` ```
@@ -283,9 +279,8 @@ applyTo: '{FILE_PATTERNS}'
```markdown ```markdown
--- ---
mode: 'agent' agent: 'agent'
description: '{DESCRIPTION}' description: '{DESCRIPTION}'
model: GPT-4.1
--- ---
{PROMPT_CONTENT} {PROMPT_CONTENT}
@@ -342,14 +337,21 @@ When bootstrapping, offer presets based on detected stack:
## Validation Rules ## Validation Rules
### Frontmatter Requirements ### Frontmatter Requirements (Reference Only)
These are the official requirements from awesome-copilot. The agent does NOT deep-validate every file, but uses these when generating templates:
| File Type | Required Fields | Recommended | | File Type | Required Fields | Recommended |
|-----------|-----------------|-------------| |-----------|-----------------|-------------|
| `.agent.md` | `description` | `model`, `tools` | | `.agent.md` | `description` | `model`, `tools`, `name` |
| `.prompt.md` | `mode`, `description` | `model`, `tools` | | `.prompt.md` | `agent`, `description` | `model`, `tools`, `name` |
| `.instructions.md` | `description`, `applyTo` | - | | `.instructions.md` | `description`, `applyTo` | - |
| `SKILL.md` | `name`, `description` | bundled assets list | | `SKILL.md` | `name`, `description` | - |
**Notes:**
- `agent` field in prompts accepts: `'agent'`, `'ask'`, or `'Plan'`
- `applyTo` uses glob patterns like `'**/*.ts'` or `'**/*.js, **/*.ts'`
- `name` in SKILL.md must match folder name, lowercase with hyphens
### Naming Conventions ### Naming Conventions