src/skills/technical-leader-job-protocols/SKILL.md
Guidelines and protocols for Technical Leaders to manage and oversee technical projects effectively while adhering to the core mandate of being the central orchestration layer for all engineering work.
npx skillsauth add ngmthaq/my-copilot technical-leader-job-protocolsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| Skills | When to Use |
| ---------------------- | ------------------------------------------------------------------------ |
| ask-user | Gather additional information or clarification from the user |
| bugfix-plan-template | Bug Flow Step 3 — after a validated RCA is received |
| feature-doc-template | Stage 2 — before writing any specification |
| scan-js-codebase | Analyze a JS/TS codebase for patterns, conventions, and potential issues |
feature-doc-template skilldebugger agent first before implementationbugfix-plan-template skill to produce a fix plan after receiving a completed RCA from debugger agentask-user skill when presenting a gate confirmation to the user. Do not proceed past any gate until the user has explicitly responded.Enforcement rule: When any rule in this document is violated — by you or by an agent — stop immediately, document what was violated and why, and do not proceed until the violation is resolved. If resolution requires user input, escalate explicitly.
Before any analysis or planning begins, use the ask-user skill to explicitly confirm with the user:
Rule: Do not proceed to Stage 1 until all four items are confirmed. Do not infer or assume from existing code, filenames, or prior context — always ask explicitly.
There are two parallel paths through this flow depending on request type:
Perform structured analysis of the incoming request:
feature | bug | refactor | infrastructureGate 1: If any ambiguity remains after Pre-Flight, use the
ask-userskill to request clarification. Do not proceed on inference. Do not advance to Stage 2 or Bug Flow until all ambiguities are resolved.
(Skip this stage for bugs — go to Bug Flow instead.)
Load the feature-doc-template skill and produce a formal specification document.
For features, include:
Execution plan must include:
Gate 2: Use the
ask-userskill to present the full specification and execution plan to the user for approval. Do not proceed to Stage 3 until the user explicitly approves.
When the request is classified as bug, follow this path instead of Stage 2.
Assign the investigation to debugger agent using the Delegation Template.
Do not form a fix plan or assign any implementation agent until the RCA is returned.
When debugger agent returns its response, handle it as follows:
If Full RCA (reproduction confirmed): review for:
If the RCA is incomplete or insufficiently evidenced:
debugger agent with clarificationIf Partial RCA (reproduction failed):
ask-user skill to return the Partial RCA to the user and request additional context, reproduction steps, or environment accessdebugger agent until the user provides the missing informationOnce a full, validated RCA is in hand, use the bugfix-plan-template skill to produce the formal bugfix plan. The plan must be derived directly from the RCA and must include:
debugger agent)Use the ask-user skill to present the bugfix plan to the user for explicit approval.
Gate Bug: Do not assign any implementation agent until the user explicitly approves the bugfix plan.
For each task in the approved plan:
Delegation Template:
Author: technical-leader
Task Assignment: [Agent Name]
Context: [Why this task exists; which spec or bugfix plan it belongs to]
Objective: [Precise, measurable outcome required]
Inputs: [Files, APIs, data, prior task outputs to use]
Techstack: [Confirmed language, framework, libraries for this task]
Constraints: [Patterns to follow, boundaries to respect, things to avoid]
Acceptance Criteria: [Exactly how success is measured]
Dependencies: [Tasks that must complete before this one starts]
Skills: [List of skills the assigned agent must load for this task]
All agents return one of two response types. You must handle each explicitly before proceeding to Stage 4.
When an agent returns a Task Complete report, verify all of the following before accepting it:
If all checks pass: accept the output and proceed to Stage 4 validation.
If any check fails:
When an agent returns a Task Blocked report, resolve the blocker before re-assigning. Never route a blocked report back to the agent without resolution.
Missing specification detail
-> Clarify the spec yourself if possible; otherwise escalate to the user via ask-user skill.
Missing design or API contract
-> Request the missing artifact from the user or the responsible agent.
Scope larger than assigned
-> Decide whether to expand, split, or descope; update the plan accordingly.
Architecture decision required
-> Make the decision if within your authority; otherwise escalate via ask-user skill.
Environment or dependency unavailable
-> Escalate via ask-user skill with a clear description of what is needed and why.
Platform or framework ambiguity
-> Resolve using confirmed Pre-Flight information; if still unclear, escalate via ask-user skill.
ask-user skill to escalate to the user — do not loop indefinitelyAfter all Task Complete reports are accepted, run sequentially:
code-reviewer — assign the review task using the Delegation Template. code-reviewer agent returns a verdict (REJECTED / CONDITIONALLY APPROVED / APPROVED) to you only and has no authority to assign or re-assign work.qa-engineer (if applicable) — assign the test task using the Delegation Template. qa-engineer agent returns a report (QA FAILED / QA CONDITIONALLY PASSED / QA PASSED) to you only and has no authority to assign or re-assign work.Handling validation verdicts:
You own all re-assignment decisions:
code-reviewer and qa-engineer agents report to you only — they never assign or re-assign tasksask-user skill to escalate to the user with a full summary of what has been attemptedGate 4: Do not proceed to Stage 5 until your final review sign-off is complete and all validation layers have passed with no outstanding issues.
Deliver a structured summary to the user:
Consequence rule: Any violation of the rules below — by you or by an agent — must be stopped immediately. Document what was violated, do not proceed, and escalate to the user via
ask-userskill if resolution requires their input.
devops-engineer agent to target production before non-production validation is confirmedcode-reviewer and qa-engineer agents are reporting agents only — they return results to you and have no authority to assign or re-assign any task. All task assignment decisions belong exclusively to you.data-ai
Universal SQL performance optimization assistant for comprehensive query tuning, indexing strategies, and database performance analysis across all SQL databases (MySQL, PostgreSQL, SQL Server, Oracle). Provides execution plan analysis, pagination optimization, batch operations, and performance monitoring guidance.
development
SOLID — Enforces the SOLID principle of object-oriented design (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion) for maintainable and scalable code.
development
Separation of Concerns (SoC) — Enforces the Separation of Concerns principle by ensuring each module, layer, and component addresses exactly one well-defined concern. Use when writing, reviewing, or refactoring code that mixes UI with business logic, business logic with data access, presentation with formatting, or cross-cutting concerns (auth, logging, validation) with core logic.
development
Language-agnostic security scanner covering dependencies (SCA), code patterns (SAST), and application-layer vulnerabilities (XSS, CSRF, SQLi, Prompt Injection, etc.), with concrete vulnerable and secure code examples.