/konductor:security-test-generationfrom Konductor
Generates security test plans organized by seven security domains and three test layers. Integrates AWS and OWASP best practices for authentication, input validation, API security, data protection, session management, error handling, and infrastructure.
Ships in Konductor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generates security test plans by domain (authentication, input validation, API security, data protection, session management, error handling, infrastructure) and layer (frontend, backend, infrastructure). Integrates AWS and OWASP security testing best practices.
Use this skill when:
Authentication (login, MFA, session), Input Validation (injection, XSS, CSRF), API Security (rate limiting, authorization), Data Protection (encryption, PII handling), Session Management (timeout, fixation), Error Handling (information disclosure, stack traces), and Infrastructure (S3 public access, security groups, IAM).
Frontend (browser-based attacks, client-side validation bypass), Backend (API-level attacks, business logic bypass), and Infrastructure (misconfiguration, network exposure).
When this skill is activated, use the following as your full instruction set for generating security tests. Apply the Quality Gate at the end before presenting output to the user.
Follow stages sequentially. Each stage builds on previous outputs.
Task List Directory: {output_dir}, optional and defaulting to .kiro/specs/security-testing/ — this default applies to the Kiro branch of Stage 8 (tool_type == "kiro"). The non-Kiro branch of Stage 8 defaults output_dir to security-test-plans/ instead.
Task List File: {output_dir}/tasks.md
output_dir lets a calling SOP place the task list alongside its other artifacts. Callers that pass nothing get the default, so existing behavior is unchanged. These paths are used throughout the prompt for task list generation and tracking.
This skill asks the user several questions — tool type, technology stack, and how to proceed with generation. A calling SOP that runs this per feature in parallel, or with no human present, MUST pass scope_confirmed=true along with the context it already holds. When scope_confirmed is true You MUST NOT ask any of those questions: detect what you can, take stack and approach from the caller when supplied, otherwise default to the hybrid approach over the artifacts the caller pointed you at, and report what you assumed instead of prompting. Every question in this skill is subject to that rule, not only the ones nearest this note.
Objective: Collect tool type and project context.
Step 1: Auto-detect Kiro Environment
Check for .kiro directory in project root:
.kiro directory exists → automatically set tool_type = "kiro", skip tool selection question.kiro directory does not exist → proceed to Step 2Step 2: Collect Tool Type (only if Kiro not detected)
Unless scope_confirmed=true, ask: "Which tool are you using?" Otherwise detect what you can and default tool_type = "other" without asking.
Options:
Store selected tool as tool_type = "other"
Step 3: Collect Project Context
Unless scope_confirmed=true, ask: "What is the primary technology stack for your application?" Otherwise take stack from the caller when supplied, or detect it from the artifacts, without asking.
Options:
Store as project_type
Validation:
tool_type, project_typeObjective: Discover available security-related artifacts.
Search for Artifacts:
Design & Architecture:
threat-model.md, security-design.md, threat-analysis.md)openapi.yaml, api-spec.json, swagger.yaml)security-requirements.md, security.md)Implementation & Development:
implementation-guide.md, implementation.md)src/, lib/, app/, lambda/, frontend/, backend/, or any directory containing code files)Discovery Results:
For each artifact type:
Store: discovered_artifacts with paths and availability status
Objective: Present discovered artifacts and get user preference.
Step 1: Present Findings
Display discovered artifacts:
Discovered Security Artifacts:
Design & Architecture:
✅ Threat model: design-architecture/threat-model.md
✅ API specs: design-architecture/api-specs/openapi.yaml
❌ Security requirements: Not found
Implementation & Development:
✅ Implementation guide: implementation-development/implementation-guide.md
✅ Source code: src/ (TypeScript, React, Node.js detected)
Step 2: Ask User Preference
Unless scope_confirmed=true, ask: "How would you like to proceed with security test generation?" Otherwise take approach from the caller when supplied, or default to the hybrid approach over the artifacts the caller pointed you at, without asking.
Options:
Step 3: Store Decision
Store user choice as integration_mode:
artifacts_onlysource_code_onlyhybridmanualObjective: Analyze source code to identify security testing needs.
Conditional Execution:
integration_mode is source_code_only or hybridintegration_mode is artifacts_only or manualStep 1: Identify Application Layers
Scan source code structure to identify:
Frontend Layer:
Backend Layer:
Infrastructure Layer:
Step 2: Identify Security-Relevant Code Patterns
Scan for:
Authentication & Authorization:
Input Validation:
Data Protection:
API Security:
Step 3: Detect Testing Framework
Scan for testing frameworks:
Store detected framework as testing_framework
Store: code_analysis_results with layers, patterns, and framework
Objective: Identify applicable security test categories based on artifacts and/or code analysis.
Step 1: Extract from Artifacts (if integration_mode includes artifacts)
From Threat Model:
From API Specs:
From Security Requirements:
From Implementation Guide:
Step 2: Extract from Source Code (if integration_mode includes source code)
Based on code analysis results:
Step 3: Organize by Hybrid Structure
Organize identified categories by:
Security Domain Categories:
Authentication & Authorization
Input Validation & Injection Prevention
API Security
Data Protection & Encryption
Session Management
Error Handling & Information Disclosure
Infrastructure Security
Step 4: Filter Applicable Categories
Based on project_type and analysis results:
Store: security_test_categories with domain, layer, and applicability
Objective: Integrate AWS and OWASP security testing best practices.
Step 1: Load Best Practices
AWS Security Best Practices:
OWASP Best Practices:
Step 2: Map Best Practices to Categories
For each security test category:
Example mapping:
Store: best_practices_mapping with category-to-practice associations
Objective: Generate high-level security test tasks.
Step 1: Create Foundation Task
Always include as Task 1:
- [ ] 1. Review security testing foundations
- Review OWASP Top 10 vulnerabilities
- Review AWS Security Best Practices documentation
- Review applicable security guidelines for your organization
- Familiarize with detected testing framework: [framework_name]
- Review threat model (if available): [path]
- Review API specifications (if available): [path]
Step 2: Generate Category Tasks
For each applicable security test category:
Task Format:
- [ ] N. [Security Domain] - [Application Layer]
- Generate requirements.md with security test requirements and acceptance criteria
- Generate design.md with test strategy, attack scenarios, and validation approach
- Generate tasks.md with specific test cases in checkbox format
- Test order: Positive tests → Negative tests → Edge cases (optional)
- Best practices: [relevant best practices]
- References: [threat model sections, API endpoints, code files]
Task Numbering:
Step 3: Add Test Execution Guidance
For each task, include sub-bullets:
Positive Tests:
Negative Tests:
Edge Cases (Optional):
Store: task_list with all generated tasks
Objective: Generate tool-specific output files based on detected or selected tool.
tool_type == "kiro")Detection Note: Kiro environment auto-detected via .kiro directory presence.
Generate Primary Task List Only:
Create Security Testing Task List:
File: {output_dir}/tasks.md
Header:
# Security Testing Implementation Plan
This file tracks security test generation and execution across all application layers.
Each task generates detailed requirements, design, and test cases for a specific security domain.
## Testing Approach
- Test Order: Positive tests → Negative tests → Edge cases (optional)
- Framework: [detected_framework]
- Best Practices: AWS, OWASP
## Discovered Artifacts
[List of discovered artifacts with paths]
## Tasks
Task List:
Output Message:
✅ Security test plan complete!
Environment: Kiro (auto-detected)
Generated Files:
- `{output_dir}/tasks.md` (primary task list)
Security Test Categories:
The file contains [N] security test categories organized by domain and application layer.
Discovered Artifacts:
[List artifacts that were found and will be used]
Testing Framework: [detected_framework]
Workflow:
1. Open `{output_dir}/tasks.md`
2. **IMPORTANT: Start with Task 1** - Review security testing foundations
- Familiarize yourself with OWASP Top 10, AWS best practices, and testing framework
3. Click "Start task" on the first security test category to generate its detailed spec
4. The spec generation will create requirements.md, design.md, and tasks.md for that category
5. Implement tests following the order: Positive → Negative → Edge cases
6. After completing the category, return to the primary task list and proceed to the next
Security tests will be created in priority order, ensuring foundational security (authentication) is tested first.
Best Practices Applied:
- AWS Security Best Practices
- OWASP Web Security Testing Guide
Refining: Re-run to update based on new artifacts or code changes.
tool_type == "other")Selection Note: Tool type selected by user (Q CLI or Cline).
Generate:
{output_dir}, optional and defaulting to security-test-plans/ — this default applies to this non-Kiro branch (tool_type == "other"). The Kiro branch above defaults output_dir to .kiro/specs/security-testing/ instead.{output_dir}/[domain]-[layer].md with description, test cases, best practices, references{output_dir}/security-test-overview.md: master view, all categories, testing framework, best practices{output_dir}/best-practices-reference.md: AWS, OWASP guidelinesoutput_dir lets a calling SOP place these files alongside its other artifacts, the same way it places the Kiro branch's tasks.md. Callers that pass nothing get the default, so existing behavior is unchanged.
Output Message:
✅ Security test plans generated: [N] categories in `{output_dir}`
Environment: [Q CLI | Cline] (user-selected)
Category Files: [list]
Overview Files: {output_dir}/security-test-overview.md, {output_dir}/best-practices-reference.md
Testing Framework: [detected_framework]
Using with Q CLI:
q chat --prompt "Implement security tests from {output_dir}/[category-file].md"
Using with Cline:
1. Open {output_dir}/[category-file].md
2. Copy test cases and requirements
3. Paste into Cline
Recommended Execution Order: [list by priority]
Best Practices Applied:
- AWS Security Best Practices
- OWASP Web Security Testing Guide
Refining: Re-run to update based on new artifacts or code changes.
Objective: Provide completion summary and guidance.
Summary:
Security Test Plan Complete!
Summary:
- Security Test Categories: [N]
- Application Layers: [Frontend/Backend/Infrastructure]
- Testing Framework: [detected_framework]
- Artifacts Used: [list if applicable]
- Best Practices: AWS, OWASP
Files Created: [list with paths]
Test Execution Order:
1. Authentication & Authorization
2. Input Validation & Injection Prevention
3. API Security
4. Data Protection & Encryption
5. Session Management
6. Error Handling & Information Disclosure
7. Infrastructure Security
Next Steps:
1. Review generated task list
2. Start with Task 1 (foundation review)
3. Implement tests in priority order
4. Follow test order: Positive → Negative → Edge cases
5. Track progress in your tool
6. Re-run if artifacts or code changes
All Outputs:
Maintain throughout conversation:
{
tool_type: "kiro" | "other",
tool_detection_method: "auto" | "manual",
selected_tool?: "Q CLI" | "Cline",
project_type: string,
discovered_artifacts: {
threat_model?: string,
api_specs?: string,
security_requirements?: string,
implementation_guide?: string,
source_code_dirs: string[]
},
integration_mode: "artifacts_only" | "source_code_only" | "hybrid" | "manual",
code_analysis_results?: {
frontend_layer?: object,
backend_layer?: object,
infrastructure_layer?: object,
security_patterns: string[],
testing_framework: string
},
security_test_categories: Array<{
domain: string,
layer: string,
applicable: boolean,
best_practices: string[],
references: string[]
}>,
best_practices_mapping: object,
task_list: Array<Task>
}
Missing Artifacts:
No Testing Framework Detected:
Insufficient Code Analysis:
File System Errors:
Conversation Flow:
Branching Logic:
.kiro directory at startupUser Experience:
CRITICAL (must fix):
IMPORTANT (should fix):
SUGGESTION:
Present findings as: CRITICAL → IMPORTANT → SUGGESTION. Ask: "Fix these issues? [y/n]" — unless scope_confirmed is true, in which case report all the findings and leave fixing to the caller, without asking.
What SKILL.md sets; muted values are Claude Code's defaults
101 skills in this plugin
/about-konductorGets a new user from nothing to a working Konductor session — install the CLI, start the orchestrator, and describe real work in plain language. Covers the real `konductor` CLI command surface, example orchestrator prompts, and the agent/skill/SOP model. Use when a user asks "what is Konductor", "how do I install this", "what can I ask it", or "what's the difference between an agent, a skill, and a SOP"./adr-generatorProduces a complete inline ADR (Context, Decision, Status, Alternatives, Consequences). Use when a significant design decision is identified during design doc creation, when an engineer asks to document a decision as an ADR, or when an existing ADR is incomplete (missing alternatives, consequences, or status). Trigger phrases — "generate an ADR for this decision", "document this as an architecture decision record", "create an ADR for choosing X over Y"./adversarial-code-reviewnpx claudepluginhub aws-solutions/konductor --plugin konductorOther plugins' skills for the same job