
- Add config module from backup (loader, accessor, migration) - Add agent reference cards for token-efficient migration - Add migration knowledge base and instructions - Ready to start systematic config-driven migration
37 lines
933 B
Markdown
37 lines
933 B
Markdown
# Agent Instructions Template (Token-Efficient)
|
|
|
|
## Syntax Fixer Agent
|
|
```markdown
|
|
TASK: Fix syntax errors in FILE_PATH
|
|
PATTERNS: See SYNTAX_FIX_CARD.md
|
|
OUTPUT: {"status": "fixed", "changes": N, "test_passed": bool}
|
|
TEST: nu --ide-check FILE_PATH
|
|
```
|
|
|
|
## ENV Migrator Agent
|
|
```markdown
|
|
TASK: Replace ENV vars in FILE_PATH
|
|
MAPPING: See ENV_MAPPING_CARD.md
|
|
KEEP: PROVISIONING_ARGS, PROVISIONING_OUT, NOW, CURRENT_*
|
|
OUTPUT: {"status": "migrated", "replacements": N}
|
|
```
|
|
|
|
## Validator Agent
|
|
```markdown
|
|
TASK: Test FILE_PATH works
|
|
COMMANDS: nu --ide-check FILE_PATH
|
|
OUTPUT: {"syntax_valid": bool, "errors": []}
|
|
```
|
|
|
|
## File Analyzer Agent
|
|
```markdown
|
|
TASK: Find issues in FILE_PATH
|
|
FIND: syntax errors, env refs, hardcoded paths
|
|
OUTPUT: {"syntax_errors": [], "env_refs": [], "paths": []}
|
|
```
|
|
|
|
## Token Budget
|
|
- Single file: ~500-1000 tokens
|
|
- Pattern reference: ~200 tokens
|
|
- Instructions: ~300 tokens
|
|
- Total per agent: ~1000-1500 tokens |