From a693ec73036cfe4c3aafb49bebd4480bcc1bc9ab Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sun, 27 Sep 2026 05:40:09 +0530 Subject: feat(development/pi-coding-agent): added the submodule, CONTEXT.md and prompts --- modules/development/pi-coding-agent/default.nix | 112 ++++++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 modules/development/pi-coding-agent/default.nix (limited to 'modules/development/pi-coding-agent/default.nix') diff --git a/modules/development/pi-coding-agent/default.nix b/modules/development/pi-coding-agent/default.nix new file mode 100644 index 0000000..1b27012 --- /dev/null +++ b/modules/development/pi-coding-agent/default.nix @@ -0,0 +1,112 @@ +{ + config, + lib, + pkgs, + ... +}: +let + cfg = config.development.pi-coding-agent; + configDir = "${config.xdg.configHome}/pi"; +in +{ + options.development.pi-coding-agent = { + enable = lib.mkEnableOption "Pi Coding Agent"; + + package = lib.mkOption { + type = lib.types.package; + default = pkgs.pi; + description = "The Pi Coding Agent package to use."; + }; + }; + + config = lib.mkIf cfg.enable { + home.sessionVariables = { + PI_CODING_AGENT_DIR = configDir; + }; + + home.file = { + "${configDir}/skills".source = ./skills; + "${configDir}/prompts".source = ./prompts; + "${configDir}/agents".source = ./agents; + }; + + programs.pi-coding-agent = { + enable = true; + inherit configDir; + keybindings = { + "tui.editor.cursorUp" = [ + "up" + "ctrl+p" + ]; + + "tui.editor.cursorDown" = [ + "down" + "ctrl+n" + ]; + + "tui.editor.deleteWordBackward" = [ + "ctrl+w" + "alt+backspace" + ]; + + "tui.editor.historyPrevious" = "ctrl+up"; + }; + + settings = { + defaultTools = [ + "read" + "bash" + "edit" + "write" + "grep" + "find" + "ls" + ]; + + defaultProjectTrust = "ask"; + + compaction = { + enabled = true; + reserveTokens = 16384; + keepRecentTokens = 20000; + }; + + retry = { + enabled = true; + maxRetries = 3; + baseDelayMs = 2000; + maxAgentDelayMs = 60000; + }; + + theme = "dark"; + + packages = [ + "npm:@termdraw/pi" + "npm:pi-mcp-adapter" + "npm:@henryqw/pi-subagent" + ]; + + skills = [ + "${configDir}/skills" + ]; + + prompts = [ + "${configDir}/prompts" + ]; + + themes = [ + "${configDir}/themes" + ]; + + enableSkillCommands = true; + + context = ./CONTEXT.md; + }; + + extraPackages = with pkgs; [ + nodejs + bun + ]; + }; + }; +} -- cgit v1.2.3 From 3da2d7f528611c48a6e006522a407b8b12ab5936 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sun, 27 Sep 2026 06:24:32 +0530 Subject: feat(development/pi-coding-agent): added pi-subagent extension and roles --- modules/development/pi-coding-agent/default.nix | 2 +- .../pi-coding-agent/roles/implementer.md | 30 ++++++++++++++++++++ .../development/pi-coding-agent/roles/reviewer.md | 33 ++++++++++++++++++++++ modules/development/pi-coding-agent/roles/scout.md | 30 ++++++++++++++++++++ 4 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 modules/development/pi-coding-agent/roles/implementer.md create mode 100644 modules/development/pi-coding-agent/roles/reviewer.md create mode 100644 modules/development/pi-coding-agent/roles/scout.md (limited to 'modules/development/pi-coding-agent/default.nix') diff --git a/modules/development/pi-coding-agent/default.nix b/modules/development/pi-coding-agent/default.nix index 1b27012..ec77686 100644 --- a/modules/development/pi-coding-agent/default.nix +++ b/modules/development/pi-coding-agent/default.nix @@ -27,7 +27,7 @@ in home.file = { "${configDir}/skills".source = ./skills; "${configDir}/prompts".source = ./prompts; - "${configDir}/agents".source = ./agents; + "${configDir}/config/pi-subagent".source = ./roles; }; programs.pi-coding-agent = { diff --git a/modules/development/pi-coding-agent/roles/implementer.md b/modules/development/pi-coding-agent/roles/implementer.md new file mode 100644 index 0000000..0ff957f --- /dev/null +++ b/modules/development/pi-coding-agent/roles/implementer.md @@ -0,0 +1,30 @@ +--- +name: "Implementer" +description: "Executes actual code changes required to resolve a bug or implement a feature based on Scout context." +modelClass: "frontier" +tools: [] +extensions: [] +skills: [] +mcps: [] +--- +# Role: Code Implementer + +## Objective +You are the Code Implementer. Your job is to execute the actual code changes required to resolve a bug or implement a feature, relying entirely on the context and file targets provided by the Code Scout. + +## Responsibilities +- **Execution:** Write clean, efficient, and idiomatic code to satisfy the task requirements. +- **Scope Adherence:** Only modify the files identified by the Scout. Do not touch unrelated systems or perform unsolicited refactoring. +- **Standardization:** Match the existing coding style, naming conventions, and architectural patterns of the target repository. +- **Test Coverage:** If writing a new feature or fixing a complex bug, ensure relevant logic is testable and robust. + +## Constraints +- Do NOT ask for more context unless the provided context is fundamentally broken or impossible to implement. +- Ensure your code is syntactically valid and does not introduce breaking changes to public APIs unless explicitly requested. +- Output complete functional blocks of code, avoiding lazy omissions like `// ... rest of the code`. + +## Output Format +Provide your changes clearly mapped to their target files: +- **File:** `path/to/file.ext` +- **Action:** [Create / Update / Delete] +- **Code:** (Provide the exact code or diff to be written) diff --git a/modules/development/pi-coding-agent/roles/reviewer.md b/modules/development/pi-coding-agent/roles/reviewer.md new file mode 100644 index 0000000..987f5f2 --- /dev/null +++ b/modules/development/pi-coding-agent/roles/reviewer.md @@ -0,0 +1,33 @@ +--- +name: "Reviewer" +description: "Critically evaluates code produced by the Implementer for bugs, style, and requirement fulfillment." +modelClass: "frontier" +tools: [] +extensions: [] +skills: [] +mcps: [] +--- +# Role: Code Reviewer + +## Objective +You are the Code Reviewer. Your duty is to critically evaluate the code produced by the Implementer. You act as the final quality gate before code is considered complete, ensuring it is secure, performant, and meets the original requirements. + +## Responsibilities +- **Requirement Validation:** Verify that the Implementer's code perfectly solves the initial issue and accounts for relevant edge cases. +- **Static Analysis:** Check for logic flaws, race conditions, unhandled exceptions, and security vulnerabilities. +- **Style & Idiom Check:** Ensure the code strictly follows best practices for the language and matches the repository's existing style. +- **Constructive Feedback:** Provide specific, actionable instructions on how to fix identified issues. + +## Constraints +- Do NOT approve code that lacks proper error handling or relies on brittle logic. +- Be uncompromising on quality but constructive and objective in tone. +- Do not execute the implementation yourself; provide precise feedback or short snippets of the correct approach for the Implementer to fix. + +## Output Format +Use the following format for your review: +1. **Verdict:** [APPROVED / REVISION REQUIRED] +2. **Summary:** Brief overview of the implementation quality. +3. **Feedback Items:** (If revisions are required) + - **File:** `path/to/file.ext` + - **Issue:** Explanation of the problem. + - **Suggestion:** Actionable fix or code snippet. diff --git a/modules/development/pi-coding-agent/roles/scout.md b/modules/development/pi-coding-agent/roles/scout.md new file mode 100644 index 0000000..7be7b19 --- /dev/null +++ b/modules/development/pi-coding-agent/roles/scout.md @@ -0,0 +1,30 @@ +--- +name: "Scout" +description: "Navigates the codebase, traces dependencies, and pinpoints exact files and lines of code for modification." +modelClass: "balanced" +tools: [] +extensions: [] +skills: [] +mcps: [] +--- +# Role: Code Scout + +## Objective +You are the Code Scout. Your primary responsibility is to navigate the codebase, understand the architecture, and pinpoint the exact files and lines of code that need modification to fulfill a specific feature request or bug fix. + +## Responsibilities +- **Codebase Navigation:** Search through directories and read file contents to build a mental map of the relevant modules. +- **Dependency Tracing:** Identify how different files and functions interact. If a change in file A affects file B, you must flag file B. +- **Context Gathering:** Extract the minimal, necessary code snippets and context required for the Implementer to do their job without being overwhelmed. +- **Target Identification:** Produce a definitive list of target files that require modification. + +## Constraints +- Do NOT write or modify any code. Your job is strictly read-only and analytical. +- Do not guess file paths; verify they exist. +- Keep your context summaries concise and highly technical. + +## Output Format +Provide your findings in the following format: +1. **Target Files:** List of exact file paths. +2. **Context:** Brief explanation of how the current logic works. +3. **Actionable Areas:** Specific functions or line ranges that the Implementer needs to focus on. -- cgit v1.2.3 From 9097b97080051022f15e821701f85de5ac7da3d4 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sun, 27 Sep 2026 07:05:58 +0530 Subject: feat(development/pi-coding-agent): wrapped the derivation with env variables --- modules/development/pi-coding-agent/default.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'modules/development/pi-coding-agent/default.nix') diff --git a/modules/development/pi-coding-agent/default.nix b/modules/development/pi-coding-agent/default.nix index ec77686..01a83ac 100644 --- a/modules/development/pi-coding-agent/default.nix +++ b/modules/development/pi-coding-agent/default.nix @@ -14,16 +14,13 @@ in package = lib.mkOption { type = lib.types.package; - default = pkgs.pi; + readOnly = true; + default = config.programs.pi-coding-agent.package; description = "The Pi Coding Agent package to use."; }; }; config = lib.mkIf cfg.enable { - home.sessionVariables = { - PI_CODING_AGENT_DIR = configDir; - }; - home.file = { "${configDir}/skills".source = ./skills; "${configDir}/prompts".source = ./prompts; @@ -33,6 +30,15 @@ in programs.pi-coding-agent = { enable = true; inherit configDir; + package = pkgs.symlinkJoin { + name = "pi-coding-agent-wrapped"; + paths = [ pkgs.pi-coding-agent ]; + nativeBuildInputs = [ pkgs.makeWrapper ]; + postBuild = '' + wrapProgram $out/bin/pi \ + --set PI_CODING_AGENT_DIR ${configDir} + ''; + }; keybindings = { "tui.editor.cursorUp" = [ "up" @@ -73,7 +79,7 @@ in retry = { enabled = true; - maxRetries = 3; + maxRetries = 30; baseDelayMs = 2000; maxAgentDelayMs = 60000; }; -- cgit v1.2.3 From 1312572fa140367010978f20129543c71052c281 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sun, 27 Sep 2026 19:06:55 +0530 Subject: feat(development/pi-coding-agent): added instructions on using subagents --- modules/development/pi-coding-agent/default.nix | 6 +++--- modules/development/pi-coding-agent/skills/architecture/SKILL.md | 9 ++++++++- modules/development/pi-coding-agent/skills/code-review/SKILL.md | 9 ++++++++- modules/development/pi-coding-agent/skills/debugging/SKILL.md | 7 +++++++ .../pi-coding-agent/skills/dependency-management/SKILL.md | 9 ++++++++- .../development/pi-coding-agent/skills/documentation/SKILL.md | 9 ++++++++- modules/development/pi-coding-agent/skills/git/SKILL.md | 7 +++++++ .../pi-coding-agent/skills/performance-analysis/SKILL.md | 9 ++++++++- modules/development/pi-coding-agent/skills/refactoring/SKILL.md | 7 +++++++ modules/development/pi-coding-agent/skills/release/SKILL.md | 7 +++++++ modules/development/pi-coding-agent/skills/research/SKILL.md | 7 +++++++ .../development/pi-coding-agent/skills/security-review/SKILL.md | 9 ++++++++- modules/development/pi-coding-agent/skills/testing/SKILL.md | 9 ++++++++- 13 files changed, 94 insertions(+), 10 deletions(-) (limited to 'modules/development/pi-coding-agent/default.nix') diff --git a/modules/development/pi-coding-agent/default.nix b/modules/development/pi-coding-agent/default.nix index 01a83ac..e560a98 100644 --- a/modules/development/pi-coding-agent/default.nix +++ b/modules/development/pi-coding-agent/default.nix @@ -109,9 +109,9 @@ in context = ./CONTEXT.md; }; - extraPackages = with pkgs; [ - nodejs - bun + extraPackages = [ + pkgs.nodejs + pkgs.bun ]; }; }; diff --git a/modules/development/pi-coding-agent/skills/architecture/SKILL.md b/modules/development/pi-coding-agent/skills/architecture/SKILL.md index 5097418..9b2b53d 100644 --- a/modules/development/pi-coding-agent/skills/architecture/SKILL.md +++ b/modules/development/pi-coding-agent/skills/architecture/SKILL.md @@ -7,6 +7,13 @@ description: "Understand module boundaries, dependencies, data flow, public inte Understand existing boundaries and dependencies before proposing structural changes; useful for large repositories. +## Subagents +When you need to delegate sub‑tasks, use the `pi-subagents` skill. + +**Example:** For a large codebase, you might spawn a **scout** to map module boundaries in the `auth` package, another **scout** to trace data flow in the `payment` pipeline, and a **reviewer** to verify that the proposed interface changes don't break downstream consumers—all running in parallel. + +*You may adapt the delegation pattern to fit the exact requirements of the codebase.* + ## Analysis ### 1. Module Boundaries @@ -32,4 +39,4 @@ Understand existing boundaries and dependencies before proposing structural chan ### 5. Risks - Migration complexity - Testing implications -- Rollback feasibility \ No newline at end of file +- Rollback feasibility diff --git a/modules/development/pi-coding-agent/skills/code-review/SKILL.md b/modules/development/pi-coding-agent/skills/code-review/SKILL.md index 6629d52..bdbacd0 100644 --- a/modules/development/pi-coding-agent/skills/code-review/SKILL.md +++ b/modules/development/pi-coding-agent/skills/code-review/SKILL.md @@ -7,6 +7,13 @@ description: "Review diffs for correctness, edge cases, regressions, API compati Review diffs for correctness, edge cases, regressions, API compatibility, maintainability, and missing tests. +## Subagents +When you need to delegate sub‑tasks, use the `pi-subagents` skill. + +**Example:** For a large pull request, you could assign one **scout** to read the changed files in the `api` layer, another **scout** to inspect the `database` migrations, and a **reviewer** to check each area for correctness, edge cases, and API compatibility—then aggregate their findings into a single review. + +*You may adapt the delegation pattern to fit the exact requirements of the codebase.* + ## Checklist ### Correctness @@ -34,4 +41,4 @@ Review diffs for correctness, edge cases, regressions, API compatibility, mainta ### Tests - [ ] New functionality tested - [ ] Edge cases covered -- [ ] Regression tests added \ No newline at end of file +- [ ] Regression tests added diff --git a/modules/development/pi-coding-agent/skills/debugging/SKILL.md b/modules/development/pi-coding-agent/skills/debugging/SKILL.md index 05c2de0..6592a84 100644 --- a/modules/development/pi-coding-agent/skills/debugging/SKILL.md +++ b/modules/development/pi-coding-agent/skills/debugging/SKILL.md @@ -7,6 +7,13 @@ description: "A systematic workflow; reproduce -> inspect logs/errors -> isolate A systematic workflow: reproduce -> inspect logs/errors -> isolate cause -> form hypothesis -> test -> fix -> regression test. +## Subagents +When you need to delegate sub‑tasks, use the `pi-subagents` skill. + +**Example:** When debugging a flaky test, spawn a **scout** to reproduce the issue in a clean environment, another **scout** to analyze the relevant log files, and an **implementer** to apply a targeted fix while a **reviewer** runs the regression suite—all in parallel. + +*You may adapt the delegation pattern to fit the exact requirements of the codebase.* + ## Workflow ### 1. Reproduce diff --git a/modules/development/pi-coding-agent/skills/dependency-management/SKILL.md b/modules/development/pi-coding-agent/skills/dependency-management/SKILL.md index 213e848..a36f80f 100644 --- a/modules/development/pi-coding-agent/skills/dependency-management/SKILL.md +++ b/modules/development/pi-coding-agent/skills/dependency-management/SKILL.md @@ -7,6 +7,13 @@ description: "Investigate whether a dependency is actually necessary, check exis Investigate whether a dependency is actually necessary, check existing versions/conventions, minimize dependency additions, and update lockfiles deliberately. +## Subagents +When you need to delegate sub‑tasks, use the `pi-subagents` skill. + +**Example:** To evaluate a new dependency, use a **scout** to check if the functionality exists in the standard library, another **scout** to compare versions and licensing of alternatives, and a **reviewer** to verify the lockfile update doesn't introduce transitive conflicts. + +*You may adapt the delegation pattern to fit the exact requirements of the codebase.* + ## Process ### 1. Necessity @@ -27,4 +34,4 @@ Investigate whether a dependency is actually necessary, check existing versions/ ### 4. Update - Update lockfiles atomically - Test after updates -- Document breaking changes \ No newline at end of file +- Document breaking changes diff --git a/modules/development/pi-coding-agent/skills/documentation/SKILL.md b/modules/development/pi-coding-agent/skills/documentation/SKILL.md index 6d6a6e1..d7ad4bf 100644 --- a/modules/development/pi-coding-agent/skills/documentation/SKILL.md +++ b/modules/development/pi-coding-agent/skills/documentation/SKILL.md @@ -7,6 +7,13 @@ description: "Generate/update README/API/architecture docs from the actual imple Generate/update README/API/architecture docs from the actual implementation rather than inventing behavior. +## Subagents +When you need to delegate sub‑tasks, use the `pi-subagents` skill. + +**Example:** For a new feature, assign a **scout** to extract API signatures from the `service` module, another **scout** to gather usage examples from the `cli` package, and an **implementer** to generate the corresponding README and API docs sections simultaneously. + +*You may adapt the delegation pattern to fit the exact requirements of the codebase.* + ## Principles ### Source of Truth @@ -22,4 +29,4 @@ Generate/update README/API/architecture docs from the actual implementation rath ### Maintenance - Update with code changes - Delete stale documentation -- Link to code references \ No newline at end of file +- Link to code references diff --git a/modules/development/pi-coding-agent/skills/git/SKILL.md b/modules/development/pi-coding-agent/skills/git/SKILL.md index 7331fc5..df60f8f 100644 --- a/modules/development/pi-coding-agent/skills/git/SKILL.md +++ b/modules/development/pi-coding-agent/skills/git/SKILL.md @@ -7,6 +7,13 @@ description: "Inspect status/diff/history, preserve user work, create focused co Inspect status/diff/history, preserve user work, create focused commits when requested, help with merges/rebases/conflicts. +## Subagents +When you need to delegate sub‑tasks, use the `pi-subagents` skill. + +**Example:** When preparing a complex merge, spawn a **scout** to analyze the commit history of the `feature` branch, another **scout** to inspect the conflicting files in `core`, and a **reviewer** to verify the merged result passes all tests before pushing. + +*You may adapt the delegation pattern to fit the exact requirements of the codebase.* + ## Operations ### Inspect diff --git a/modules/development/pi-coding-agent/skills/performance-analysis/SKILL.md b/modules/development/pi-coding-agent/skills/performance-analysis/SKILL.md index e8dad8b..0a65471 100644 --- a/modules/development/pi-coding-agent/skills/performance-analysis/SKILL.md +++ b/modules/development/pi-coding-agent/skills/performance-analysis/SKILL.md @@ -7,6 +7,13 @@ description: "Measure before optimizing, identify likely bottlenecks, make a tar Measure before optimizing, identify likely bottlenecks, make a targeted change, and verify the effect. +## Subagents +When you need to delegate sub‑tasks, use the `pi-subagents` skill. + +**Example:** To optimize a slow endpoint, run a **scout** to profile CPU usage in the `handler` function, another **scout** to measure I/O latency in the `storage` layer, and an **implementer** to apply algorithmic improvements while a **reviewer** compares benchmarks against the baseline. + +*You may adapt the delegation pattern to fit the exact requirements of the codebase.* + ## Workflow ### 1. Measure @@ -27,4 +34,4 @@ Measure before optimizing, identify likely bottlenecks, make a targeted change, ### 4. Verify - Re-measure after change - Compare to baseline -- Check for regressions \ No newline at end of file +- Check for regressions diff --git a/modules/development/pi-coding-agent/skills/refactoring/SKILL.md b/modules/development/pi-coding-agent/skills/refactoring/SKILL.md index f947cff..09f01fa 100644 --- a/modules/development/pi-coding-agent/skills/refactoring/SKILL.md +++ b/modules/development/pi-coding-agent/skills/refactoring/SKILL.md @@ -7,6 +7,13 @@ description: "Explicitly preserve behavior while improving structure; identify u Explicitly preserve behavior while improving structure; identify unnecessary abstraction and avoid scope creep. +## Subagents +When you need to delegate sub‑tasks, use the `pi-subagents` skill. + +**Example:** When refactoring a legacy module, use a **scout** to identify all call sites of the `legacy::utils` functions, another **scout** to map the test coverage for each, and an **implementer** to inline or replace them incrementally while a **reviewer** ensures behavior is preserved. + +*You may adapt the delegation pattern to fit the exact requirements of the codebase.* + ## Principles ### Preserve Behavior diff --git a/modules/development/pi-coding-agent/skills/release/SKILL.md b/modules/development/pi-coding-agent/skills/release/SKILL.md index 7612eef..a81acfd 100644 --- a/modules/development/pi-coding-agent/skills/release/SKILL.md +++ b/modules/development/pi-coding-agent/skills/release/SKILL.md @@ -7,6 +7,13 @@ description: "Build -> test -> inspect artifacts -> changelog/versioning -> pack Build -> test -> inspect artifacts -> changelog/versioning -> package/release checks. +## Subagents +When you need to delegate sub‑tasks, use the `pi-subagents` skill. + +**Example:** For a multi-platform release, assign a **scout** to build the Linux artifact, another **scout** to build the macOS artifact, a third to run the integration test suite, and a **reviewer** to verify version tags and changelog entries before publishing. + +*You may adapt the delegation pattern to fit the exact requirements of the codebase.* + ## Process ### 1. Build diff --git a/modules/development/pi-coding-agent/skills/research/SKILL.md b/modules/development/pi-coding-agent/skills/research/SKILL.md index 53629ec..c906a1c 100644 --- a/modules/development/pi-coding-agent/skills/research/SKILL.md +++ b/modules/development/pi-coding-agent/skills/research/SKILL.md @@ -7,6 +7,13 @@ description: "For unfamiliar APIs or libraries; identify authoritative sources, For unfamiliar APIs or libraries: identify authoritative sources, compare alternatives, verify version-specific behavior, and separate verified facts from assumptions. +## Subagents +When you need to delegate sub‑tasks, use the `pi-subagents` skill. + +**Example:** When evaluating a new library, spawn a **scout** to read the official documentation, another **scout** to search for community benchmarks, and a **reviewer** to compare the findings against your project's requirements and version constraints. + +*You may adapt the delegation pattern to fit the exact requirements of the codebase.* + ## Process ### 1. Identify Sources diff --git a/modules/development/pi-coding-agent/skills/security-review/SKILL.md b/modules/development/pi-coding-agent/skills/security-review/SKILL.md index 0b2d307..3f534ab 100644 --- a/modules/development/pi-coding-agent/skills/security-review/SKILL.md +++ b/modules/development/pi-coding-agent/skills/security-review/SKILL.md @@ -7,6 +7,13 @@ description: "Look for secrets, injection, unsafe shell execution, auth/authz mi Look for secrets, injection, unsafe shell execution, auth/authz mistakes, dependency risks, path traversal, SSRF, insecure defaults, etc. +## Subagents +When you need to delegate sub‑tasks, use the `pi-subagents` skill. + +**Example:** For a security audit, run a **scout** to scan for injection vulnerabilities in the input validators, another **scout** to review authentication flows for authz mistakes, and a **reviewer** to check for path traversal and SSRF in file-handling code—all in parallel. + +*You may adapt the delegation pattern to fit the exact requirements of the codebase.* + ## Checklist ### Secrets & Credentials @@ -47,4 +54,4 @@ Look for secrets, injection, unsafe shell execution, auth/authz mistakes, depend ### Insecure Defaults - [ ] Secure defaults enabled - [ ] Debug endpoints disabled -- [ ] Proper CORS configuration \ No newline at end of file +- [ ] Proper CORS configuration diff --git a/modules/development/pi-coding-agent/skills/testing/SKILL.md b/modules/development/pi-coding-agent/skills/testing/SKILL.md index 4b1b6eb..4785fe7 100644 --- a/modules/development/pi-coding-agent/skills/testing/SKILL.md +++ b/modules/development/pi-coding-agent/skills/testing/SKILL.md @@ -7,6 +7,13 @@ description: "Figure out the project's existing test strategy, add targeted test Figure out the project's existing test strategy, add targeted tests, run the smallest useful test set, then broaden validation. +## Subagents +When you need to delegate sub‑tasks, use the `pi-subagents` skill. + +**Example:** To expand test coverage, assign a **scout** to run the existing unit test suite and report gaps, another **scout** to generate property-based tests for the `parser` module, and an **implementer** to add integration tests for the `api` endpoints while a **reviewer** verifies the new tests pass. + +*You may adapt the delegation pattern to fit the exact requirements of the codebase.* + ## Process ### 1. Discover @@ -32,4 +39,4 @@ Figure out the project's existing test strategy, add targeted tests, run the sma ### 5. Report - Document what was tested - Note any skipped tests -- Report coverage gaps \ No newline at end of file +- Report coverage gaps -- cgit v1.2.3