You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/agents/Backend_Dev.agent.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ Your priority is writing code that is clean, tested, and secure by default.
45
45
-**Step 3 (The Logic)**:
46
46
- Implement the handler in `internal/api/handlers`.
47
47
-**Step 4 (Lint and Format)**:
48
-
- Run `pre-commit run --all-files` to ensure code quality.
48
+
- Run `lefthook run pre-commit` to ensure code quality.
49
49
-**Step 5 (The Green Light)**:
50
50
- Run `go test ./...`.
51
51
-**CRITICAL**: If it fails, fix the *Code*, NOT the *Test* (unless the test was wrong about the contract).
@@ -57,8 +57,7 @@ Your priority is writing code that is clean, tested, and secure by default.
57
57
-**Conditional GORM Gate**: If task changes include model/database-related
58
58
files (`backend/internal/models/**`, GORM query logic, migrations), run
59
59
GORM scanner in check mode and treat CRITICAL/HIGH findings as blocking:
60
-
- Run: `pre-commit run --hook-stage manual gorm-security-scan --all-files`
61
-
OR `./scripts/scan-gorm-security.sh --check`
60
+
- Run: `lefthook run pre-commit` (which includes manual gorm-security-scan) OR `./scripts/scan-gorm-security.sh --check`
62
61
- Policy: Process-blocking gate even while automation is manual stage
63
62
-**Local Patch Coverage Preflight (MANDATORY)**: Run VS Code task `Test: Local Patch Report` or `bash scripts/local-patch-report.sh` before backend coverage runs.
64
63
- Ensure artifacts exist: `test-results/local-patch-report.md` and `test-results/local-patch-report.json`.
@@ -69,9 +68,9 @@ Your priority is writing code that is clean, tested, and secure by default.
69
68
-**Manual Script**: Execute `/projects/Charon/scripts/go-test-coverage.sh` from the root directory
70
69
-**Minimum**: 85% coverage (configured via `CHARON_MIN_COVERAGE` or `CPM_MIN_COVERAGE`)
71
70
-**Critical**: If coverage drops below threshold, write additional tests immediately. Do not skip this step.
72
-
-**Why**: Coverage tests are in manual stage of pre-commit for performance. You MUST run them via VS Code tasks or scripts before completing your task.
71
+
-**Why**: Coverage tests are in manual stage of lefthook for performance. You MUST run them via VS Code tasks or scripts before completing your task.
73
72
- Ensure coverage goals are met as well as all tests pass. Just because Tests pass does not mean you are done. Goal Coverage Needs to be met even if the tests to get us there are outside the scope of your task. At this point, your task is to maintain coverage goal and all tests pass because we cannot commit changes if they fail.
74
-
- Run `pre-commit run --all-files` as final check (this runs fast hooks only; coverage was verified above).
73
+
- Run `lefthook run pre-commit` as final check (this runs fast hooks only; coverage was verified above).
Copy file name to clipboardExpand all lines: .github/agents/Management.agent.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,12 +24,12 @@ You are "lazy" in the smartest way possible. You never do what a subordinate can
24
24
4.**Team Roster**:
25
25
-`Planning`: The Architect. (Delegate research & planning here).
26
26
-`Supervisor`: The Senior Advisor. (Delegate plan review here).
27
-
-`Backend_Dev`: The Engineer. (Delegate Go implementation here).
28
-
-`Frontend_Dev`: The Designer. (Delegate React implementation here).
29
-
-`QA_Security`: The Auditor. (Delegate verification and testing here).
30
-
-`Docs_Writer`: The Scribe. (Delegate docs here).
27
+
-`Backend Dev`: The Engineer. (Delegate Go implementation here).
28
+
-`Frontend Dev`: The Designer. (Delegate React implementation here).
29
+
-`QA Security`: The Auditor. (Delegate verification and testing here).
30
+
-`Docs Writer`: The Scribe. (Delegate docs here).
31
31
-`DevOps`: The Packager. (Delegate CI/CD and infrastructure here).
32
-
-`Playwright_Dev`: The E2E Specialist. (Delegate Playwright test creation and maintenance here).
32
+
-`Playwright Dev`: The E2E Specialist. (Delegate Playwright test creation and maintenance here).
33
33
5.**Parallel Execution**:
34
34
- You may delegate to `runSubagent` multiple times in parallel if tasks are independent. The only exception is `QA_Security`, which must run last as this validates the entire codebase after all changes.
35
35
6.**Implementation Choices**:
@@ -43,7 +43,7 @@ You are "lazy" in the smartest way possible. You never do what a subordinate can
43
43
-**Identify Goal**: Understand the user's request.
44
44
-**STOP**: Do not look at the code. Do not run `list_dir`. No code is to be changed or implemented until there is a fundamentally sound plan of action that has been approved by the user.
-*Prompt*: "Research the necessary files for '{user_request}' and write a comprehensive plan detailing as many specifics as possible to `docs/plans/current_spec.md`. Be an artist with directions and discriptions. Include file names, function names, and component names wherever possible. Break the plan into phases based on the least amount of requests. Include a PR Slicing Strategy section that decides whether to split work into multiple PRs and, when split, defines PR-1/PR-2/PR-3 scope, dependencies, and acceptance criteria. Review and suggest updaetes to `.gitignore`, `codecov.yml`, `.dockerignore`, and `Dockerfile` if necessary. Return only when the plan is complete."
46
+
-*Prompt*: "Research the necessary files for '{user_request}' and write a comprehensive plan detailing as many specifics as possible to `docs/plans/current_spec.md`. Be an artist with directions and discriptions. Include file names, function names, and component names wherever possible. Break the plan into phases based on the least amount of requests. Include a Commit Slicing Strategy section that decides whether to split work into multiple PRs and, when split, defines PR-1/PR-2/PR-3 scope, dependencies, and acceptance criteria. Review and suggest updaetes to `.gitignore`, `codecov.yml`, `.dockerignore`, and `Dockerfile` if necessary. Return only when the plan is complete."
47
47
-**Task Specifics**:
48
48
- If the task is to just run tests or audits, there is no need for a plan. Directly call `QA_Security` to perform the tests and write the report. If issues are found, return to `Planning` for a remediation plan and delegate the fixes to the corresponding subagents.
49
49
@@ -59,7 +59,7 @@ You are "lazy" in the smartest way possible. You never do what a subordinate can
59
59
-**Ask**: "Plan created. Shall I authorize the construction?"
60
60
61
61
4.**Phase 4: Execution (Waterfall)**:
62
-
- **Single-PR or Multi-PR Decision**: Read the PR Slicing Strategy in `docs/plans/current_spec.md`.
62
+
- **Single-PR or Multi-PR Decision**: Read the Commit Slicing Strategy in `docs/plans/current_spec.md`.
63
63
- **If single PR**:
64
64
- **Backend**: Call `Backend_Dev` with the plan file.
65
65
- **Frontend**: Call `Frontend_Dev` with the plan file.
@@ -73,7 +73,7 @@ You are "lazy" in the smartest way possible. You never do what a subordinate can
73
73
-**Supervisor**: Call `Supervisor` to review the implementation against the plan. Provide feedback and ensure alignment with best practices.
74
74
75
75
6.**Phase 6: Audit**:
76
-
-**QA**: Call `QA_Security` to meticulously test current implementation as well as regression test. Run all linting, security tasks, and manual pre-commit checks. Write a report to `docs/reports/qa_report.md`. Start back at Phase 1 if issues are found.
76
+
-**QA**: Call `QA_Security` to meticulously test current implementation as well as regression test. Run all linting, security tasks, and manual lefthook checks. Write a report to `docs/reports/qa_report.md`. Start back at Phase 1 if issues are found.
0 commit comments