@zimezone/z-command 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +147 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +27 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/init.d.ts +9 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +82 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/list.d.ts +7 -0
- package/dist/commands/list.d.ts.map +1 -0
- package/dist/commands/list.js +70 -0
- package/dist/commands/list.js.map +1 -0
- package/package.json +46 -0
- package/templates/agents/accessibility-expert.agent.md +56 -0
- package/templates/agents/ai-engineer.agent.md +61 -0
- package/templates/agents/angular-architect.agent.md +49 -0
- package/templates/agents/api-designer.agent.md +40 -0
- package/templates/agents/azure-infra-engineer.agent.md +57 -0
- package/templates/agents/backend-developer.agent.md +61 -0
- package/templates/agents/blockchain-developer.agent.md +57 -0
- package/templates/agents/build-engineer.agent.md +56 -0
- package/templates/agents/business-analyst.agent.md +47 -0
- package/templates/agents/cli-developer.agent.md +57 -0
- package/templates/agents/cloud-architect.agent.md +56 -0
- package/templates/agents/code-architect.agent.md +63 -0
- package/templates/agents/code-reviewer.agent.md +49 -0
- package/templates/agents/competitive-analyst.agent.md +48 -0
- package/templates/agents/context-manager.agent.md +55 -0
- package/templates/agents/cpp-pro.agent.md +59 -0
- package/templates/agents/csharp-developer.agent.md +57 -0
- package/templates/agents/data-engineer.agent.md +55 -0
- package/templates/agents/data-researcher.agent.md +55 -0
- package/templates/agents/data-scientist.agent.md +56 -0
- package/templates/agents/database-administrator.agent.md +50 -0
- package/templates/agents/devops-engineer.agent.md +59 -0
- package/templates/agents/django-developer.agent.md +50 -0
- package/templates/agents/documentation-engineer.agent.md +57 -0
- package/templates/agents/electron-pro.agent.md +56 -0
- package/templates/agents/embedded-systems.agent.md +55 -0
- package/templates/agents/fintech-engineer.agent.md +57 -0
- package/templates/agents/flutter-expert.agent.md +50 -0
- package/templates/agents/frontend-developer.agent.md +59 -0
- package/templates/agents/fullstack-developer.agent.md +46 -0
- package/templates/agents/game-developer.agent.md +57 -0
- package/templates/agents/git-workflow-manager.agent.md +57 -0
- package/templates/agents/golang-pro.agent.md +50 -0
- package/templates/agents/graphql-architect.agent.md +48 -0
- package/templates/agents/iot-engineer.agent.md +56 -0
- package/templates/agents/java-architect.agent.md +48 -0
- package/templates/agents/kotlin-specialist.agent.md +50 -0
- package/templates/agents/kubernetes-specialist.agent.md +56 -0
- package/templates/agents/laravel-specialist.agent.md +50 -0
- package/templates/agents/legacy-modernizer.agent.md +56 -0
- package/templates/agents/llm-architect.agent.md +58 -0
- package/templates/agents/market-researcher.agent.md +47 -0
- package/templates/agents/mcp-developer.agent.md +54 -0
- package/templates/agents/microservices-architect.agent.md +47 -0
- package/templates/agents/ml-engineer.agent.md +56 -0
- package/templates/agents/mlops-engineer.agent.md +56 -0
- package/templates/agents/mobile-developer.agent.md +45 -0
- package/templates/agents/multi-agent-coordinator.agent.md +55 -0
- package/templates/agents/network-engineer.agent.md +57 -0
- package/templates/agents/nextjs-developer.agent.md +48 -0
- package/templates/agents/nlp-engineer.agent.md +58 -0
- package/templates/agents/payment-integration.agent.md +56 -0
- package/templates/agents/performance-optimizer.agent.md +57 -0
- package/templates/agents/platform-engineer.agent.md +57 -0
- package/templates/agents/postgres-pro.agent.md +58 -0
- package/templates/agents/product-manager.agent.md +55 -0
- package/templates/agents/project-manager.agent.md +57 -0
- package/templates/agents/prompt-engineer.agent.md +58 -0
- package/templates/agents/python-pro.agent.md +48 -0
- package/templates/agents/rails-expert.agent.md +50 -0
- package/templates/agents/react-specialist.agent.md +49 -0
- package/templates/agents/refactoring-specialist.agent.md +56 -0
- package/templates/agents/research-analyst.agent.md +63 -0
- package/templates/agents/scrum-master.agent.md +54 -0
- package/templates/agents/security-analyst.agent.md +57 -0
- package/templates/agents/security-engineer.agent.md +57 -0
- package/templates/agents/seo-specialist.agent.md +57 -0
- package/templates/agents/sre-engineer.agent.md +58 -0
- package/templates/agents/swift-expert.agent.md +49 -0
- package/templates/agents/task-distributor.agent.md +47 -0
- package/templates/agents/technical-writer.agent.md +48 -0
- package/templates/agents/terraform-engineer.agent.md +57 -0
- package/templates/agents/test-engineer.agent.md +55 -0
- package/templates/agents/trend-analyst.agent.md +47 -0
- package/templates/agents/typescript-pro.agent.md +48 -0
- package/templates/agents/ui-designer.agent.md +48 -0
- package/templates/agents/ux-researcher.agent.md +48 -0
- package/templates/agents/vue-expert.agent.md +48 -0
- package/templates/agents/websocket-engineer.agent.md +49 -0
- package/templates/agents/workflow-orchestrator.agent.md +48 -0
- package/templates/skills/code-review/SKILL.md +62 -0
- package/templates/skills/security-review/SKILL.md +78 -0
- package/templates/skills/systematic-debugging/SKILL.md +57 -0
- package/templates/skills/test-driven-development/SKILL.md +46 -0
- package/templates/skills/writing-plans/SKILL.md +64 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Workflow and process orchestration specialist
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Workflow Orchestrator
|
|
6
|
+
|
|
7
|
+
You are an expert workflow orchestrator specializing in designing and implementing complex multi-step processes and automations.
|
|
8
|
+
|
|
9
|
+
## Core Responsibilities
|
|
10
|
+
|
|
11
|
+
- Design workflow architectures
|
|
12
|
+
- Implement process automation
|
|
13
|
+
- Coordinate multi-system processes
|
|
14
|
+
- Handle error recovery
|
|
15
|
+
- Monitor workflow execution
|
|
16
|
+
- Optimize process efficiency
|
|
17
|
+
|
|
18
|
+
## Workflow Patterns
|
|
19
|
+
|
|
20
|
+
- Sequential workflows
|
|
21
|
+
- Parallel execution
|
|
22
|
+
- Conditional branching
|
|
23
|
+
- Error handling and retries
|
|
24
|
+
- Human-in-the-loop
|
|
25
|
+
- Event-driven triggers
|
|
26
|
+
|
|
27
|
+
## Orchestration
|
|
28
|
+
|
|
29
|
+
- State management
|
|
30
|
+
- Dependency handling
|
|
31
|
+
- Timeout management
|
|
32
|
+
- Idempotent operations
|
|
33
|
+
- Compensation (saga pattern)
|
|
34
|
+
|
|
35
|
+
## Tools & Technologies
|
|
36
|
+
|
|
37
|
+
- Temporal, Prefect, Airflow
|
|
38
|
+
- Step Functions, Cloud Workflows
|
|
39
|
+
- Message queues
|
|
40
|
+
- Event systems
|
|
41
|
+
- Monitoring dashboards
|
|
42
|
+
|
|
43
|
+
## Communication Style
|
|
44
|
+
|
|
45
|
+
- Think in terms of states
|
|
46
|
+
- Design for failure
|
|
47
|
+
- Consider long-running processes
|
|
48
|
+
- Plan for visibility
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: code-review
|
|
3
|
+
description: Automated code review checklist. Use when reviewing PRs or code changes.
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Code Review
|
|
8
|
+
|
|
9
|
+
Comprehensive checklist for reviewing code changes.
|
|
10
|
+
|
|
11
|
+
## Pre-Review Checklist
|
|
12
|
+
|
|
13
|
+
Before starting the review:
|
|
14
|
+
|
|
15
|
+
- [ ] Understand the context and requirements
|
|
16
|
+
- [ ] Check if tests are included
|
|
17
|
+
- [ ] Verify CI/CD passes
|
|
18
|
+
|
|
19
|
+
## Review Categories
|
|
20
|
+
|
|
21
|
+
### 1. Correctness
|
|
22
|
+
|
|
23
|
+
- Does the code do what it's supposed to?
|
|
24
|
+
- Are edge cases handled?
|
|
25
|
+
- Are there potential bugs or race conditions?
|
|
26
|
+
|
|
27
|
+
### 2. Design
|
|
28
|
+
|
|
29
|
+
- Is the code well-structured?
|
|
30
|
+
- Does it follow SOLID principles?
|
|
31
|
+
- Is there unnecessary complexity?
|
|
32
|
+
|
|
33
|
+
### 3. Readability
|
|
34
|
+
|
|
35
|
+
- Are variable/function names clear?
|
|
36
|
+
- Is the code self-documenting?
|
|
37
|
+
- Are comments helpful (not redundant)?
|
|
38
|
+
|
|
39
|
+
### 4. Performance
|
|
40
|
+
|
|
41
|
+
- Are there obvious performance issues?
|
|
42
|
+
- Is there unnecessary work being done?
|
|
43
|
+
- Are there N+1 queries or similar patterns?
|
|
44
|
+
|
|
45
|
+
### 5. Security
|
|
46
|
+
|
|
47
|
+
- Is user input validated?
|
|
48
|
+
- Are there potential injection vulnerabilities?
|
|
49
|
+
- Is sensitive data handled properly?
|
|
50
|
+
|
|
51
|
+
### 6. Testing
|
|
52
|
+
|
|
53
|
+
- Are tests comprehensive?
|
|
54
|
+
- Do tests cover edge cases?
|
|
55
|
+
- Are tests maintainable?
|
|
56
|
+
|
|
57
|
+
## Providing Feedback
|
|
58
|
+
|
|
59
|
+
- Be specific and constructive
|
|
60
|
+
- Explain the "why" behind suggestions
|
|
61
|
+
- Differentiate between blocking and non-blocking issues
|
|
62
|
+
- Acknowledge good code
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: security-review
|
|
3
|
+
description: Security vulnerability detection based on OWASP Top 10. Use when reviewing code for security issues.
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Security Review
|
|
8
|
+
|
|
9
|
+
Proactive security review based on OWASP Top 10 and security best practices.
|
|
10
|
+
|
|
11
|
+
## OWASP Top 10 Checklist
|
|
12
|
+
|
|
13
|
+
### A01: Broken Access Control
|
|
14
|
+
|
|
15
|
+
- [ ] Verify authorization checks on all endpoints
|
|
16
|
+
- [ ] Check for IDOR vulnerabilities
|
|
17
|
+
- [ ] Ensure principle of least privilege
|
|
18
|
+
|
|
19
|
+
### A02: Cryptographic Failures
|
|
20
|
+
|
|
21
|
+
- [ ] Sensitive data encrypted in transit (HTTPS)
|
|
22
|
+
- [ ] Sensitive data encrypted at rest
|
|
23
|
+
- [ ] Strong encryption algorithms used
|
|
24
|
+
|
|
25
|
+
### A03: Injection
|
|
26
|
+
|
|
27
|
+
- [ ] SQL queries use parameterized statements
|
|
28
|
+
- [ ] User input is validated and sanitized
|
|
29
|
+
- [ ] Command injection prevented
|
|
30
|
+
|
|
31
|
+
### A04: Insecure Design
|
|
32
|
+
|
|
33
|
+
- [ ] Security requirements defined
|
|
34
|
+
- [ ] Threat modeling performed
|
|
35
|
+
- [ ] Secure design patterns used
|
|
36
|
+
|
|
37
|
+
### A05: Security Misconfiguration
|
|
38
|
+
|
|
39
|
+
- [ ] Default credentials changed
|
|
40
|
+
- [ ] Unnecessary features disabled
|
|
41
|
+
- [ ] Error messages don't leak info
|
|
42
|
+
|
|
43
|
+
### A06: Vulnerable Components
|
|
44
|
+
|
|
45
|
+
- [ ] Dependencies are up to date
|
|
46
|
+
- [ ] Known vulnerabilities addressed
|
|
47
|
+
- [ ] Components from trusted sources
|
|
48
|
+
|
|
49
|
+
### A07: Authentication Failures
|
|
50
|
+
|
|
51
|
+
- [ ] Strong password policies
|
|
52
|
+
- [ ] Multi-factor authentication available
|
|
53
|
+
- [ ] Session management secure
|
|
54
|
+
|
|
55
|
+
### A08: Data Integrity Failures
|
|
56
|
+
|
|
57
|
+
- [ ] Input validation on all data
|
|
58
|
+
- [ ] Integrity checks on critical data
|
|
59
|
+
- [ ] Signed updates and migrations
|
|
60
|
+
|
|
61
|
+
### A09: Logging Failures
|
|
62
|
+
|
|
63
|
+
- [ ] Security events logged
|
|
64
|
+
- [ ] Logs don't contain sensitive data
|
|
65
|
+
- [ ] Log injection prevented
|
|
66
|
+
|
|
67
|
+
### A10: SSRF
|
|
68
|
+
|
|
69
|
+
- [ ] URL validation on server requests
|
|
70
|
+
- [ ] Allowlist for external resources
|
|
71
|
+
- [ ] Network segmentation in place
|
|
72
|
+
|
|
73
|
+
## Severity Levels
|
|
74
|
+
|
|
75
|
+
- **Critical**: Immediate exploitation possible
|
|
76
|
+
- **High**: Significant risk, fix soon
|
|
77
|
+
- **Medium**: Should be addressed
|
|
78
|
+
- **Low**: Minor issue, fix when convenient
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: systematic-debugging
|
|
3
|
+
description: 4-phase root cause debugging process. Use when fixing bugs or investigating issues.
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Systematic Debugging
|
|
8
|
+
|
|
9
|
+
A structured approach to finding and fixing bugs.
|
|
10
|
+
|
|
11
|
+
## Phase 1: Reproduce
|
|
12
|
+
|
|
13
|
+
- Confirm the bug exists
|
|
14
|
+
- Document exact steps to reproduce
|
|
15
|
+
- Identify the expected vs actual behavior
|
|
16
|
+
- Create a minimal test case
|
|
17
|
+
|
|
18
|
+
## Phase 2: Isolate
|
|
19
|
+
|
|
20
|
+
- Narrow down the problem area
|
|
21
|
+
- Use binary search to find the failing component
|
|
22
|
+
- Add logging or breakpoints strategically
|
|
23
|
+
- Check recent changes that might have caused the issue
|
|
24
|
+
|
|
25
|
+
## Phase 3: Identify Root Cause
|
|
26
|
+
|
|
27
|
+
- Don't just fix symptoms
|
|
28
|
+
- Trace the issue to its origin
|
|
29
|
+
- Understand WHY it's happening
|
|
30
|
+
- Consider related areas that might be affected
|
|
31
|
+
|
|
32
|
+
## Phase 4: Fix and Verify
|
|
33
|
+
|
|
34
|
+
- Make the minimal fix required
|
|
35
|
+
- Add a regression test
|
|
36
|
+
- Verify the fix doesn't break other functionality
|
|
37
|
+
- Document the fix for future reference
|
|
38
|
+
|
|
39
|
+
## Techniques
|
|
40
|
+
|
|
41
|
+
### Root Cause Tracing
|
|
42
|
+
|
|
43
|
+
- Follow the data flow backwards
|
|
44
|
+
- Check all inputs and outputs
|
|
45
|
+
- Verify assumptions at each step
|
|
46
|
+
|
|
47
|
+
### Defense in Depth
|
|
48
|
+
|
|
49
|
+
- Add validation at multiple layers
|
|
50
|
+
- Fail fast with clear error messages
|
|
51
|
+
- Log important state changes
|
|
52
|
+
|
|
53
|
+
### Condition-Based Waiting
|
|
54
|
+
|
|
55
|
+
- Avoid arbitrary sleep/delays
|
|
56
|
+
- Wait for specific conditions
|
|
57
|
+
- Use timeouts with clear error messages
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: test-driven-development
|
|
3
|
+
description: Guide for RED-GREEN-REFACTOR cycle. Use when writing tests or implementing features with TDD.
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Test-Driven Development
|
|
8
|
+
|
|
9
|
+
Follow the RED-GREEN-REFACTOR cycle for all development work.
|
|
10
|
+
|
|
11
|
+
## Process
|
|
12
|
+
|
|
13
|
+
### 1. RED - Write a Failing Test
|
|
14
|
+
|
|
15
|
+
- Write a test that describes the desired behavior
|
|
16
|
+
- Run the test to confirm it fails
|
|
17
|
+
- The test should fail for the right reason
|
|
18
|
+
|
|
19
|
+
### 2. GREEN - Make It Pass
|
|
20
|
+
|
|
21
|
+
- Write the minimum code to make the test pass
|
|
22
|
+
- Don't over-engineer or add extra features
|
|
23
|
+
- Focus only on passing the current test
|
|
24
|
+
|
|
25
|
+
### 3. REFACTOR - Clean Up
|
|
26
|
+
|
|
27
|
+
- Improve code quality without changing behavior
|
|
28
|
+
- Remove duplication
|
|
29
|
+
- Improve naming and structure
|
|
30
|
+
- All tests should still pass
|
|
31
|
+
|
|
32
|
+
## Anti-Patterns to Avoid
|
|
33
|
+
|
|
34
|
+
- Writing code before tests
|
|
35
|
+
- Writing multiple tests before making any pass
|
|
36
|
+
- Refactoring while tests are failing
|
|
37
|
+
- Testing implementation details instead of behavior
|
|
38
|
+
- Skipping the refactor step
|
|
39
|
+
|
|
40
|
+
## Best Practices
|
|
41
|
+
|
|
42
|
+
- Keep tests fast and isolated
|
|
43
|
+
- Test behavior, not implementation
|
|
44
|
+
- One assertion per test when possible
|
|
45
|
+
- Use descriptive test names
|
|
46
|
+
- Mock external dependencies
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: writing-plans
|
|
3
|
+
description: Create detailed implementation plans. Use when planning new features or refactoring work.
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Writing Implementation Plans
|
|
8
|
+
|
|
9
|
+
Create clear, actionable implementation plans that can be executed step-by-step.
|
|
10
|
+
|
|
11
|
+
## Plan Structure
|
|
12
|
+
|
|
13
|
+
### 1. Goal Description
|
|
14
|
+
|
|
15
|
+
- What problem are we solving?
|
|
16
|
+
- What is the desired outcome?
|
|
17
|
+
- What are the success criteria?
|
|
18
|
+
|
|
19
|
+
### 2. Background Context
|
|
20
|
+
|
|
21
|
+
- Current state of the system
|
|
22
|
+
- Relevant constraints
|
|
23
|
+
- Prior decisions and their rationale
|
|
24
|
+
|
|
25
|
+
### 3. Proposed Changes
|
|
26
|
+
|
|
27
|
+
Group by component, ordered by dependency:
|
|
28
|
+
|
|
29
|
+
```markdown
|
|
30
|
+
### Component Name
|
|
31
|
+
|
|
32
|
+
#### [MODIFY] filename.ts
|
|
33
|
+
|
|
34
|
+
- Change X to Y
|
|
35
|
+
- Add validation for Z
|
|
36
|
+
|
|
37
|
+
#### [NEW] newfile.ts
|
|
38
|
+
|
|
39
|
+
- Purpose of this file
|
|
40
|
+
- Key responsibilities
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### 4. Implementation Steps
|
|
44
|
+
|
|
45
|
+
Numbered, atomic steps:
|
|
46
|
+
|
|
47
|
+
1. Create the new module
|
|
48
|
+
2. Add tests for the new functionality
|
|
49
|
+
3. Integrate with existing code
|
|
50
|
+
4. Update documentation
|
|
51
|
+
|
|
52
|
+
### 5. Verification Plan
|
|
53
|
+
|
|
54
|
+
- Unit tests to add
|
|
55
|
+
- Integration tests needed
|
|
56
|
+
- Manual verification steps
|
|
57
|
+
|
|
58
|
+
## Best Practices
|
|
59
|
+
|
|
60
|
+
- Keep steps small and atomic
|
|
61
|
+
- Include rollback considerations
|
|
62
|
+
- Identify risks and mitigations
|
|
63
|
+
- Estimate effort for each step
|
|
64
|
+
- Mark dependencies between steps
|