Skip to content

Commit 932026a

Browse files
committed
Reorganize: Move agent instructions to .instructions/ folder
To reduce clutter in the repository root and keep all agent-related instruction files in one location: Changes: - Moved docs/agents/playbooks/ → .instructions/playbooks/ - Moved docs/agents/contracts/ → .instructions/contracts/ - Moved scripts/ → .instructions/scripts/ - Moved templates to .instructions/templates/ - Kept workflows in .github/workflows/ (GitHub requirement) - Updated all path references in AGENTS.md, playbooks, scripts - Updated example tasks and reports with new paths Structure now: ├── AGENTS.md (root configuration) ├── .instructions/ (all agent instruction files) │ ├── playbooks/ (task-specific guides) │ ├── contracts/ (validation schemas) │ ├── scripts/ (automation tools) │ └── templates/ (PR/issue templates) ├── .github/workflows/ (CI/CD workflows) └── .agent/ (task tracking) This keeps the root clean while maintaining full functionality.
1 parent 5c31708 commit 932026a

34 files changed

+86
-86
lines changed

.agent/reports/BUG-003.report.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ changes_made:
1717
- Added None check before len(summary)
1818
- Fixed Optional type handling
1919
files_modified:
20-
- path: scripts/validate_agent_report.py
20+
- path: .instructions/scripts/validate_agent_report.py
2121
description: Fixed type errors
2222
verification:
2323
commands_run:
24-
- mypy scripts/validate_agent_report.py
25-
- python scripts/validate_agent_report.py .agent/reports/
24+
- mypy .instructions/scripts/validate_agent_report.py
25+
- python .instructions/scripts/validate_agent_report.py .agent/reports/
2626
results:
2727
- No type errors
2828
- Validation works correctly

.agent/reports/T001.report.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ summary:
77
acceptance_criteria_results:
88
- criterion: All required directories exist
99
passed: true
10-
evidence: ls -la shows src/, tests/, scripts/, docs/
10+
evidence: ls -la shows src/, tests/, .instructions/, .agent/
1111
- criterion: Contract files are valid YAML
1212
passed: true
1313
evidence: yamllint passed on all contract files
@@ -23,12 +23,12 @@ files_modified:
2323
description: Application source directory
2424
- path: tests/
2525
description: Test directory
26-
- path: docs/agents/contracts/
26+
- path: .instructions/contracts/
2727
description: Contract definitions
2828
verification:
2929
commands_run:
3030
- find . -type d -name src
31-
- python -c "import yaml; yaml.safe_load(open('docs/agents/contracts/task.contract.yaml'))"
31+
- python -c "import yaml; yaml.safe_load(open('.instructions/contracts/task.contract.yaml'))"
3232
results:
3333
- Directories exist
3434
- YAML parses successfully

.agent/reports/T002.report.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ changes_made:
1919
- Added type hints
2020
- Implemented error handling
2121
files_modified:
22-
- path: scripts/validate_agent_task.py
22+
- path: .instructions/scripts/validate_agent_task.py
2323
description: Task validation script
24-
- path: scripts/validate_agent_report.py
24+
- path: .instructions/scripts/validate_agent_report.py
2525
description: Report validation script
26-
- path: scripts/validate_agent_linkage.py
26+
- path: .instructions/scripts/validate_agent_linkage.py
2727
description: Linkage validation script
2828
verification:
2929
commands_run:
30-
- python scripts/validate_agent_task.py --help
31-
- python scripts/validate_agent_report.py --help
30+
- python .instructions/scripts/validate_agent_task.py --help
31+
- python .instructions/scripts/validate_agent_report.py --help
3232
results:
3333
- Scripts execute without errors
3434
- Help text displayed

.agent/tasks/BUG-003.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ context: |
55
The validate_agent_report.py script has type errors
66
related to Optional types and len() calls.
77
inputs:
8-
- scripts/validate_agent_report.py
8+
- .instructions/scripts/validate_agent_report.py
99
- Type checker output
1010
outputs:
1111
- Fixed type errors
@@ -14,6 +14,6 @@ acceptance_criteria:
1414
- Script functionality preserved
1515
- Tests pass
1616
routing:
17-
playbook: docs/agents/playbooks/debugging.md
17+
playbook: .instructions/playbooks/debugging.md
1818
contracts:
19-
- docs/agents/contracts/validation.contract.yaml
19+
- .instructions/contracts/validation.contract.yaml

.agent/tasks/T001.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ acceptance_criteria:
1616
- Contract files are valid YAML
1717
- Scripts can be executed
1818
routing:
19-
playbook: docs/agents/playbooks/_template.md
19+
playbook: .instructions/playbooks/_template.md
2020
contracts:
21-
- docs/agents/contracts/task.contract.yaml
21+
- .instructions/contracts/task.contract.yaml

.agent/tasks/T002.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ acceptance_criteria:
1616
- Scripts check required fields
1717
- Scripts return proper exit codes
1818
routing:
19-
playbook: docs/agents/playbooks/python.md
19+
playbook: .instructions/playbooks/python.md
2020
contracts:
21-
- docs/agents/contracts/task.contract.yaml
22-
- docs/agents/contracts/report.contract.yaml
23-
- docs/agents/contracts/validation.contract.yaml
21+
- .instructions/contracts/task.contract.yaml
22+
- .instructions/contracts/report.contract.yaml
23+
- .instructions/contracts/validation.contract.yaml

.github/workflows/post-task-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
GITHUB_REPOSITORY: ${{ github.repository }}
5858
run: |
5959
echo "Running integration for task: ${{ steps.detect.outputs.task_id }}"
60-
python scripts/github_integrator.py ${{ steps.detect.outputs.task_id }} --ci-mode
60+
python .instructions/scripts/github_integrator.py ${{ steps.detect.outputs.task_id }} --ci-mode
6161
6262
- name: Validate Ledger Updated
6363
if: steps.detect.outputs.task_id != ''

.github/workflows/validate-agent-artifacts.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: Validate Agent Artifacts
33
on:
44
pull_request:
55
paths:
6-
- "docs/agents/contracts/**/*.yaml"
6+
- ".instructions/contracts/**/*.yaml"
77
- ".agent/**/*.yaml"
8-
- "scripts/validate_agent_*.py"
9-
- ".github/workflows/validate-agent-artifacts.yml"
8+
- ".instructions/scripts/validate_agent_*.py"
9+
- ".instructions/workflows/validate-agent-artifacts.yml"
1010

1111
permissions:
1212
contents: read
@@ -28,4 +28,4 @@ jobs:
2828
2929
- name: Validate reports
3030
run: |
31-
python scripts/validate_agent_report.py .agent/reports/
31+
python .instructions/scripts/validate_agent_report.py .agent/reports/

.github/workflows/validate-agents.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ jobs:
2525
- name: Validate task contracts
2626
run: |
2727
if [ -d ".agent/tasks" ]; then
28-
python scripts/validate_agent_task.py .agent/tasks/
28+
python .instructions/scripts/validate_agent_task.py .agent/tasks/
2929
else
3030
echo "No tasks directory found, skipping task validation"
3131
fi
3232
3333
- name: Validate report contracts
3434
run: |
3535
if [ -d ".agent/reports" ]; then
36-
python scripts/validate_agent_report.py .agent/reports/
36+
python .instructions/scripts/validate_agent_report.py .agent/reports/
3737
else
3838
echo "No reports directory found, skipping report validation"
3939
fi
4040
4141
- name: Validate task/report linkage
4242
run: |
43-
python scripts/validate_agent_linkage.py
43+
python .instructions/scripts/validate_agent_linkage.py

0 commit comments

Comments
 (0)