agcel 1.0.1
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/.agent/workflows/api-gen.md +59 -0
- package/.agent/workflows/architect.md +44 -0
- package/.agent/workflows/brainstorm.md +223 -0
- package/.agent/workflows/build.md +38 -0
- package/.agent/workflows/changelog.md +51 -0
- package/.agent/workflows/checkpoint.md +138 -0
- package/.agent/workflows/commit.md +223 -0
- package/.agent/workflows/debug.md +57 -0
- package/.agent/workflows/deploy.md +76 -0
- package/.agent/workflows/doc.md +247 -0
- package/.agent/workflows/execute-plan.md +225 -0
- package/.agent/workflows/feature.md +255 -0
- package/.agent/workflows/fix.md +323 -0
- package/.agent/workflows/help.md +63 -0
- package/.agent/workflows/index.md +148 -0
- package/.agent/workflows/load.md +112 -0
- package/.agent/workflows/mode.md +170 -0
- package/.agent/workflows/optimize.md +53 -0
- package/.agent/workflows/plan.md +337 -0
- package/.agent/workflows/pr.md +74 -0
- package/.agent/workflows/product-plan.md +36 -0
- package/.agent/workflows/production-deploy.md +39 -0
- package/.agent/workflows/refactor.md +63 -0
- package/.agent/workflows/research.md +116 -0
- package/.agent/workflows/review.md +344 -0
- package/.agent/workflows/security-scan.md +56 -0
- package/.agent/workflows/ship.md +221 -0
- package/.agent/workflows/spawn.md +177 -0
- package/.agent/workflows/status.md +59 -0
- package/.agent/workflows/tdd.md +139 -0
- package/.agent/workflows/test.md +340 -0
- package/.agent/workflows/verify.md +35 -0
- package/LICENSE +21 -0
- package/README.md +67 -0
- package/dist/commands/init.js +142 -0
- package/dist/commands/install.js +98 -0
- package/dist/commands/list.js +49 -0
- package/dist/commands/restart.js +17 -0
- package/dist/commands/start.js +41 -0
- package/dist/commands/status.js +24 -0
- package/dist/commands/stop.js +29 -0
- package/dist/commands/uninstall.js +78 -0
- package/dist/index.js +58 -0
- package/dist/server/index.js +174 -0
- package/dist/utils/index.js +63 -0
- package/package.json +54 -0
- package/skills/api-security-best-practices/SKILL.md +291 -0
- package/skills/api-security-best-practices/references/examples.md +617 -0
- package/skills/architecture/SKILL.md +59 -0
- package/skills/architecture/context-discovery.md +43 -0
- package/skills/architecture/examples.md +94 -0
- package/skills/architecture/pattern-selection.md +68 -0
- package/skills/architecture/patterns-reference.md +50 -0
- package/skills/architecture/trade-off-analysis.md +77 -0
- package/skills/aws-serverless/SKILL.md +327 -0
- package/skills/brainstorming/SKILL.md +234 -0
- package/skills/c4-context/SKILL.md +154 -0
- package/skills/ci-cd-engineer/SKILL.md +50 -0
- package/skills/code-auditing/SKILL.md +55 -0
- package/skills/copywriting/SKILL.md +248 -0
- package/skills/database-engineer/SKILL.md +47 -0
- package/skills/doc-coauthoring/SKILL.md +379 -0
- package/skills/docker-expert/SKILL.md +412 -0
- package/skills/langgraph/SKILL.md +291 -0
- package/skills/postgresql/SKILL.md +73 -0
- package/skills/pricing-strategy/SKILL.md +360 -0
- package/skills/product-manager/SKILL.md +57 -0
- package/skills/prompt-engineer/README.md +659 -0
- package/skills/prompt-engineer/SKILL.md +256 -0
- package/skills/python-patterns/SKILL.md +445 -0
- package/skills/qa-engineer/SKILL.md +42 -0
- package/skills/rag-engineer/SKILL.md +94 -0
- package/skills/react-patterns/SKILL.md +202 -0
- package/skills/secure-refactoring/SKILL.md +54 -0
- package/skills/security-documentation/SKILL.md +53 -0
- package/skills/senior-architect/SKILL.md +213 -0
- package/skills/senior-architect/references/architecture_patterns.md +103 -0
- package/skills/senior-architect/references/system_design_workflows.md +103 -0
- package/skills/senior-architect/references/tech_decision_guide.md +103 -0
- package/skills/senior-architect/scripts/architecture_diagram_generator.py +114 -0
- package/skills/senior-architect/scripts/dependency_analyzer.py +114 -0
- package/skills/senior-architect/scripts/project_architect.py +114 -0
- package/skills/seo-audit/SKILL.md +491 -0
- package/skills/sql-injection-testing/SKILL.md +452 -0
- package/skills/test-driven-development/SKILL.md +375 -0
- package/skills/test-driven-development/testing-anti-patterns.md +299 -0
- package/skills/test-fixing/SKILL.md +123 -0
- package/skills/testing-patterns/SKILL.md +263 -0
- package/skills/typescript-expert/SKILL.md +202 -0
- package/skills/typescript-expert/references/advanced-topics.md +252 -0
- package/skills/typescript-expert/references/tsconfig-strict.json +92 -0
- package/skills/typescript-expert/references/typescript-cheatsheet.md +383 -0
- package/skills/typescript-expert/references/utility-types.ts +335 -0
- package/skills/typescript-expert/scripts/ts_diagnostic.py +203 -0
- package/skills/ui-ux-designer/SKILL.md +46 -0
- package/skills/vercel-deployment/SKILL.md +83 -0
- package/skills/vulnerability-scanner/SKILL.md +280 -0
- package/skills/vulnerability-scanner/checklists.md +121 -0
- package/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/skills/writing-plans/SKILL.md +120 -0
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brainstorming
|
|
3
|
+
description: >
|
|
4
|
+
Use this skill before any creative or constructive work
|
|
5
|
+
(features, components, architecture, behavior changes, or functionality).
|
|
6
|
+
This skill transforms vague ideas into validated designs through
|
|
7
|
+
disciplined, incremental reasoning and collaboration.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Brainstorming Ideas Into Designs
|
|
11
|
+
|
|
12
|
+
## Purpose
|
|
13
|
+
|
|
14
|
+
Turn raw ideas into **clear, validated designs and specifications**
|
|
15
|
+
through structured dialogue **before any implementation begins**.
|
|
16
|
+
|
|
17
|
+
This skill exists to prevent:
|
|
18
|
+
- premature implementation
|
|
19
|
+
- hidden assumptions
|
|
20
|
+
- misaligned solutions
|
|
21
|
+
- fragile systems
|
|
22
|
+
|
|
23
|
+
You are **not allowed** to implement, code, or modify behavior while this skill is active.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Operating Mode
|
|
28
|
+
|
|
29
|
+
You are operating as a **design facilitator and senior reviewer**, not a builder.
|
|
30
|
+
|
|
31
|
+
- No creative implementation
|
|
32
|
+
- No speculative features
|
|
33
|
+
- No silent assumptions
|
|
34
|
+
- No skipping ahead
|
|
35
|
+
|
|
36
|
+
Your job is to **slow the process down just enough to get it right**.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## The Process
|
|
41
|
+
|
|
42
|
+
### 1️⃣ Understand the Current Context (Mandatory First Step)
|
|
43
|
+
|
|
44
|
+
Before asking any questions:
|
|
45
|
+
|
|
46
|
+
- Review the current project state (if available):
|
|
47
|
+
- files
|
|
48
|
+
- documentation
|
|
49
|
+
- plans
|
|
50
|
+
- prior decisions
|
|
51
|
+
- Identify what already exists vs. what is proposed
|
|
52
|
+
- Note constraints that appear implicit but unconfirmed
|
|
53
|
+
|
|
54
|
+
**Do not design yet.**
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
### 2️⃣ Understanding the Idea (One Question at a Time)
|
|
59
|
+
|
|
60
|
+
Your goal here is **shared clarity**, not speed.
|
|
61
|
+
|
|
62
|
+
**Rules:**
|
|
63
|
+
|
|
64
|
+
- Ask **one question per message**
|
|
65
|
+
- Prefer **multiple-choice questions** when possible
|
|
66
|
+
- Use open-ended questions only when necessary
|
|
67
|
+
- If a topic needs depth, split it into multiple questions
|
|
68
|
+
|
|
69
|
+
Focus on understanding:
|
|
70
|
+
|
|
71
|
+
- purpose
|
|
72
|
+
- target users
|
|
73
|
+
- constraints
|
|
74
|
+
- success criteria
|
|
75
|
+
- explicit non-goals
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
### 3️⃣ Non-Functional Requirements (Mandatory)
|
|
80
|
+
|
|
81
|
+
You MUST explicitly clarify or propose assumptions for:
|
|
82
|
+
|
|
83
|
+
- Performance expectations
|
|
84
|
+
- Scale (users, data, traffic)
|
|
85
|
+
- Security or privacy constraints
|
|
86
|
+
- Reliability / availability needs
|
|
87
|
+
- Maintenance and ownership expectations
|
|
88
|
+
|
|
89
|
+
If the user is unsure:
|
|
90
|
+
|
|
91
|
+
- Propose reasonable defaults
|
|
92
|
+
- Clearly mark them as **assumptions**
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
### 4️⃣ Understanding Lock (Hard Gate)
|
|
97
|
+
|
|
98
|
+
Before proposing **any design**, you MUST pause and do the following:
|
|
99
|
+
|
|
100
|
+
#### Understanding Summary
|
|
101
|
+
Provide a concise summary (5–7 bullets) covering:
|
|
102
|
+
- What is being built
|
|
103
|
+
- Why it exists
|
|
104
|
+
- Who it is for
|
|
105
|
+
- Key constraints
|
|
106
|
+
- Explicit non-goals
|
|
107
|
+
|
|
108
|
+
#### Assumptions
|
|
109
|
+
List all assumptions explicitly.
|
|
110
|
+
|
|
111
|
+
#### Open Questions
|
|
112
|
+
List unresolved questions, if any.
|
|
113
|
+
|
|
114
|
+
Then ask:
|
|
115
|
+
|
|
116
|
+
> “Does this accurately reflect your intent?
|
|
117
|
+
> Please confirm or correct anything before we move to design.”
|
|
118
|
+
|
|
119
|
+
**Do NOT proceed until explicit confirmation is given.**
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
### 5️⃣ Explore Design Approaches
|
|
124
|
+
|
|
125
|
+
Once understanding is confirmed:
|
|
126
|
+
|
|
127
|
+
- Propose **2–3 viable approaches**
|
|
128
|
+
- Lead with your **recommended option**
|
|
129
|
+
- Explain trade-offs clearly:
|
|
130
|
+
- complexity
|
|
131
|
+
- extensibility
|
|
132
|
+
- risk
|
|
133
|
+
- maintenance
|
|
134
|
+
- Avoid premature optimization (**YAGNI ruthlessly**)
|
|
135
|
+
|
|
136
|
+
This is still **not** final design.
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
### 6️⃣ Present the Design (Incrementally)
|
|
141
|
+
|
|
142
|
+
When presenting the design:
|
|
143
|
+
|
|
144
|
+
- Break it into sections of **200–300 words max**
|
|
145
|
+
- After each section, ask:
|
|
146
|
+
|
|
147
|
+
> “Does this look right so far?”
|
|
148
|
+
|
|
149
|
+
Cover, as relevant:
|
|
150
|
+
|
|
151
|
+
- Architecture
|
|
152
|
+
- Components
|
|
153
|
+
- Data flow
|
|
154
|
+
- Error handling
|
|
155
|
+
- Edge cases
|
|
156
|
+
- Testing strategy
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
### 7️⃣ Decision Log (Mandatory)
|
|
161
|
+
|
|
162
|
+
Maintain a running **Decision Log** throughout the design discussion.
|
|
163
|
+
|
|
164
|
+
For each decision:
|
|
165
|
+
- What was decided
|
|
166
|
+
- Alternatives considered
|
|
167
|
+
- Why this option was chosen
|
|
168
|
+
|
|
169
|
+
This log should be preserved for documentation.
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## After the Design
|
|
174
|
+
|
|
175
|
+
### 📄 Documentation
|
|
176
|
+
|
|
177
|
+
Once the design is validated:
|
|
178
|
+
|
|
179
|
+
- Write the final design to a durable, shared format (e.g. Markdown)
|
|
180
|
+
- Include:
|
|
181
|
+
- Understanding summary
|
|
182
|
+
- Assumptions
|
|
183
|
+
- Decision log
|
|
184
|
+
- Final design
|
|
185
|
+
|
|
186
|
+
Persist the document according to the project’s standard workflow.
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
### 🛠️ Implementation Handoff (Optional)
|
|
191
|
+
|
|
192
|
+
Only after documentation is complete, ask:
|
|
193
|
+
|
|
194
|
+
> “Ready to set up for implementation?”
|
|
195
|
+
|
|
196
|
+
If yes:
|
|
197
|
+
- Create an explicit implementation plan
|
|
198
|
+
- Isolate work if the workflow supports it
|
|
199
|
+
- Proceed incrementally
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
## Exit Criteria (Hard Stop Conditions)
|
|
204
|
+
|
|
205
|
+
You may exit brainstorming mode **only when all of the following are true**:
|
|
206
|
+
|
|
207
|
+
- Understanding Lock has been confirmed
|
|
208
|
+
- At least one design approach is explicitly accepted
|
|
209
|
+
- Major assumptions are documented
|
|
210
|
+
- Key risks are acknowledged
|
|
211
|
+
- Decision Log is complete
|
|
212
|
+
|
|
213
|
+
If any criterion is unmet:
|
|
214
|
+
- Continue refinement
|
|
215
|
+
- **Do NOT proceed to implementation**
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
## Key Principles (Non-Negotiable)
|
|
220
|
+
|
|
221
|
+
- One question at a time
|
|
222
|
+
- Assumptions must be explicit
|
|
223
|
+
- Explore alternatives
|
|
224
|
+
- Validate incrementally
|
|
225
|
+
- Prefer clarity over cleverness
|
|
226
|
+
- Be willing to go back and clarify
|
|
227
|
+
- **YAGNI ruthlessly**
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
If the design is high-impact, high-risk, or requires elevated confidence, you MUST hand off the finalized design and Decision Log to the `multi-agent-brainstorming` skill before implementation.
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
## Gap Analysis Rule
|
|
234
|
+
Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: c4-context
|
|
3
|
+
description: Expert C4 Context-level documentation specialist. Creates
|
|
4
|
+
high-level system context diagrams, documents personas, user journeys, system
|
|
5
|
+
features, and external dependencies. Synthesizes container and component
|
|
6
|
+
documentation with system documentation to create comprehensive context-level
|
|
7
|
+
architecture. Use when creating the highest-level C4 system context
|
|
8
|
+
documentation.
|
|
9
|
+
metadata:
|
|
10
|
+
model: sonnet
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# C4 Context Level: System Context
|
|
14
|
+
|
|
15
|
+
## Use this skill when
|
|
16
|
+
|
|
17
|
+
- Working on c4 context level: system context tasks or workflows
|
|
18
|
+
- Needing guidance, best practices, or checklists for c4 context level: system context
|
|
19
|
+
|
|
20
|
+
## Do not use this skill when
|
|
21
|
+
|
|
22
|
+
- The task is unrelated to c4 context level: system context
|
|
23
|
+
- You need a different domain or tool outside this scope
|
|
24
|
+
|
|
25
|
+
## Instructions
|
|
26
|
+
|
|
27
|
+
- Clarify goals, constraints, and required inputs.
|
|
28
|
+
- Apply relevant best practices and validate outcomes.
|
|
29
|
+
- Provide actionable steps and verification.
|
|
30
|
+
- If detailed examples are required, open `resources/implementation-playbook.md`.
|
|
31
|
+
|
|
32
|
+
## System Overview
|
|
33
|
+
|
|
34
|
+
### Short Description
|
|
35
|
+
|
|
36
|
+
[One-sentence description of what the system does]
|
|
37
|
+
|
|
38
|
+
### Long Description
|
|
39
|
+
|
|
40
|
+
[Detailed description of the system's purpose, capabilities, and the problems it solves]
|
|
41
|
+
|
|
42
|
+
## Personas
|
|
43
|
+
|
|
44
|
+
### [Persona Name]
|
|
45
|
+
|
|
46
|
+
- **Type**: [Human User / Programmatic User / External System]
|
|
47
|
+
- **Description**: [Who this persona is and what they need]
|
|
48
|
+
- **Goals**: [What this persona wants to achieve]
|
|
49
|
+
- **Key Features Used**: [List of features this persona uses]
|
|
50
|
+
|
|
51
|
+
## System Features
|
|
52
|
+
|
|
53
|
+
### [Feature Name]
|
|
54
|
+
|
|
55
|
+
- **Description**: [What this feature does]
|
|
56
|
+
- **Users**: [Which personas use this feature]
|
|
57
|
+
- **User Journey**: [Link to user journey map]
|
|
58
|
+
|
|
59
|
+
## User Journeys
|
|
60
|
+
|
|
61
|
+
### [Feature Name] - [Persona Name] Journey
|
|
62
|
+
|
|
63
|
+
1. [Step 1]: [Description]
|
|
64
|
+
2. [Step 2]: [Description]
|
|
65
|
+
3. [Step 3]: [Description]
|
|
66
|
+
...
|
|
67
|
+
|
|
68
|
+
### [External System] Integration Journey
|
|
69
|
+
|
|
70
|
+
1. [Step 1]: [Description]
|
|
71
|
+
2. [Step 2]: [Description]
|
|
72
|
+
...
|
|
73
|
+
|
|
74
|
+
## External Systems and Dependencies
|
|
75
|
+
|
|
76
|
+
### [External System Name]
|
|
77
|
+
|
|
78
|
+
- **Type**: [Database, API, Service, Message Queue, etc.]
|
|
79
|
+
- **Description**: [What this external system provides]
|
|
80
|
+
- **Integration Type**: [API, Events, File Transfer, etc.]
|
|
81
|
+
- **Purpose**: [Why the system depends on this]
|
|
82
|
+
|
|
83
|
+
## System Context Diagram
|
|
84
|
+
|
|
85
|
+
[Mermaid diagram showing system, users, and external systems]
|
|
86
|
+
|
|
87
|
+
## Related Documentation
|
|
88
|
+
|
|
89
|
+
- [Container Documentation](./c4-container.md)
|
|
90
|
+
- [Component Documentation](./c4-component.md)
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Context Diagram Template
|
|
94
|
+
|
|
95
|
+
According to the [C4 model](https://c4model.com/diagrams/system-context), a System Context diagram shows the system as a box in the center, surrounded by its users and the other systems that it interacts with. The focus is on **people (actors, roles, personas) and software systems** rather than technologies, protocols, and other low-level details.
|
|
96
|
+
|
|
97
|
+
Use proper Mermaid C4 syntax:
|
|
98
|
+
|
|
99
|
+
```mermaid
|
|
100
|
+
C4Context
|
|
101
|
+
title System Context Diagram
|
|
102
|
+
|
|
103
|
+
Person(user, "User", "Uses the system to accomplish their goals")
|
|
104
|
+
System(system, "System Name", "Provides features X, Y, and Z")
|
|
105
|
+
System_Ext(external1, "External System 1", "Provides service A")
|
|
106
|
+
System_Ext(external2, "External System 2", "Provides service B")
|
|
107
|
+
SystemDb(externalDb, "External Database", "Stores data")
|
|
108
|
+
|
|
109
|
+
Rel(user, system, "Uses")
|
|
110
|
+
Rel(system, external1, "Uses", "API")
|
|
111
|
+
Rel(system, external2, "Sends events to")
|
|
112
|
+
Rel(system, externalDb, "Reads from and writes to")
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
**Key Principles** (from [c4model.com](https://c4model.com/diagrams/system-context)):
|
|
116
|
+
|
|
117
|
+
- Focus on **people and software systems**, not technologies
|
|
118
|
+
- Show the **system boundary** clearly
|
|
119
|
+
- Include all **users** (human and programmatic)
|
|
120
|
+
- Include all **external systems** the system interacts with
|
|
121
|
+
- Keep it **stakeholder-friendly** - understandable by non-technical audiences
|
|
122
|
+
- Avoid showing technologies, protocols, or low-level details
|
|
123
|
+
|
|
124
|
+
## Example Interactions
|
|
125
|
+
|
|
126
|
+
- "Create C4 Context-level documentation for the system"
|
|
127
|
+
- "Identify all personas and create user journey maps for key features"
|
|
128
|
+
- "Document external systems and create a system context diagram"
|
|
129
|
+
- "Analyze system documentation and create comprehensive context documentation"
|
|
130
|
+
- "Map user journeys for all key features including programmatic users"
|
|
131
|
+
|
|
132
|
+
## Key Distinctions
|
|
133
|
+
|
|
134
|
+
- **vs C4-Container agent**: Provides high-level system view; Container agent focuses on deployment architecture
|
|
135
|
+
- **vs C4-Component agent**: Focuses on system context; Component agent focuses on logical component structure
|
|
136
|
+
- **vs C4-Code agent**: Provides stakeholder-friendly overview; Code agent provides technical code details
|
|
137
|
+
|
|
138
|
+
## Output Examples
|
|
139
|
+
|
|
140
|
+
When creating context documentation, provide:
|
|
141
|
+
|
|
142
|
+
- Clear system descriptions (short and long)
|
|
143
|
+
- Comprehensive persona documentation (human and programmatic)
|
|
144
|
+
- Complete feature lists with descriptions
|
|
145
|
+
- Detailed user journey maps for all key features
|
|
146
|
+
- Complete external system and dependency documentation
|
|
147
|
+
- Mermaid context diagram showing system, users, and external systems
|
|
148
|
+
- Links to container and component documentation
|
|
149
|
+
- Stakeholder-friendly documentation understandable by non-technical audiences
|
|
150
|
+
- Consistent documentation format
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
## Gap Analysis Rule
|
|
154
|
+
Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ci-cd-engineer
|
|
3
|
+
description: Design and implement continuous integration and deployment pipelines
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# CI/CD Engineer
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
Your role is to automate the software delivery process. You ensure that code can be reliably built, tested, and deployed to production.
|
|
11
|
+
|
|
12
|
+
## When to Use This Skill
|
|
13
|
+
|
|
14
|
+
- Setting up GitHub Actions / GitLab CI
|
|
15
|
+
- Automating testing and linting
|
|
16
|
+
- Configuring deployment environments (Staging, Production)
|
|
17
|
+
- Managing secrets and environment variables
|
|
18
|
+
|
|
19
|
+
## Core Responsibilities
|
|
20
|
+
|
|
21
|
+
1. **Pipeline Design**: Defining steps for build, test, and deploy.
|
|
22
|
+
2. **Automation**: reducing manual toil in release processes.
|
|
23
|
+
3. **Environment Management**: ensuring parity between dev, stage, and prod.
|
|
24
|
+
4. **Security**: Scanning dependencies and secrets in the pipeline.
|
|
25
|
+
|
|
26
|
+
## Pipeline Stages
|
|
27
|
+
|
|
28
|
+
1. **Lint & Format**: Fail fast if code style is wrong.
|
|
29
|
+
2. **Build**: Compile code and check for errors.
|
|
30
|
+
3. **Test**: Run unit and integration tests.
|
|
31
|
+
4. **Security**: Run SAST/DAST scans.
|
|
32
|
+
5. **Deploy**: Push artifact to target environment (e.g. AWS, Vercel).
|
|
33
|
+
|
|
34
|
+
### Example GitHub Action Snippet
|
|
35
|
+
```yaml
|
|
36
|
+
name: CI
|
|
37
|
+
on: [push]
|
|
38
|
+
jobs:
|
|
39
|
+
build:
|
|
40
|
+
runs-on: ubuntu-latest
|
|
41
|
+
steps:
|
|
42
|
+
- uses: actions/checkout@v2
|
|
43
|
+
- uses: actions/setup-node@v2
|
|
44
|
+
- run: npm install
|
|
45
|
+
- run: npm test
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
## Gap Analysis Rule
|
|
50
|
+
Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: code-auditing
|
|
3
|
+
description: Analyze code for security vulnerabilities like SQL injection, XSS, and broken authentication. Use when tasked with reviewing code for security flaws.
|
|
4
|
+
allowed-tools: Read, Glob, Grep
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Code Auditing Framework
|
|
8
|
+
|
|
9
|
+
> "Trust, but verify. Then verify again."
|
|
10
|
+
|
|
11
|
+
## 🎯 Selective Reading Rule
|
|
12
|
+
|
|
13
|
+
**Read ONLY files relevant to the security context!**
|
|
14
|
+
|
|
15
|
+
| File | Description | When to Read |
|
|
16
|
+
|------|-------------|--------------|
|
|
17
|
+
| `*.py`, `*.js`, `*.ts` | Source code files | Identify potential vulnerabilities |
|
|
18
|
+
| `poetry.lock`, `package-lock.json` | Dependency files | Check for known vulnerable dependencies |
|
|
19
|
+
| `README.md` | Project documentation | Understand architecture and data flow |
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## 🔗 Related Skills
|
|
24
|
+
|
|
25
|
+
| Skill | Use For |
|
|
26
|
+
|-------|---------|
|
|
27
|
+
| `@[skills/secure-refactoring]` | Fixing identified vulnerabilities |
|
|
28
|
+
| `@[skills/security-documentation]` | Documenting findings |
|
|
29
|
+
| `@[skills/api-security-best-practices]` | API specific security checks |
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Core Principle
|
|
34
|
+
|
|
35
|
+
**"Security is not an afterthought."**
|
|
36
|
+
|
|
37
|
+
- Identify input vectors (API endpoints, form inputs)
|
|
38
|
+
- Trace data flow to sinks (Database queries, HTML output)
|
|
39
|
+
- Look for missing validation or sanitization
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Auditing Checklist
|
|
44
|
+
|
|
45
|
+
Before reporting findings:
|
|
46
|
+
|
|
47
|
+
- [ ] Identified potential SQL injection points
|
|
48
|
+
- [ ] Checked for XSS vulnerabilities in output
|
|
49
|
+
- [ ] Verified authentication and authorization logic
|
|
50
|
+
- [ ] Checked for hardcoded secrets
|
|
51
|
+
- [ ] Validated input sanitization
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## Gap Analysis Rule
|
|
55
|
+
Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.
|