@gonzih/skills-engineering 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 +50 -0
- package/install.js +15 -0
- package/package.json +34 -0
- package/skills/architecture-doc/SKILL.md +33 -0
- package/skills/code-review-brief/SKILL.md +31 -0
- package/skills/incident-postmortem/SKILL.md +33 -0
- package/skills/tech-spec/SKILL.md +35 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 gonzih
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# @gonzih/skills-engineering
|
|
2
|
+
|
|
3
|
+
Claude Code skill suite for software engineers, tech leads, and engineering managers.
|
|
4
|
+
|
|
5
|
+
## Skills
|
|
6
|
+
|
|
7
|
+
| Skill | Invoke | What it does |
|
|
8
|
+
|-------|--------|--------------|
|
|
9
|
+
| `architecture-doc` | `/architecture-doc` | Generate an ADR or system design doc |
|
|
10
|
+
| `code-review-brief` | `/code-review-brief` | Write a structured code review summary |
|
|
11
|
+
| `incident-postmortem` | `/incident-postmortem` | Write a blameless postmortem |
|
|
12
|
+
| `tech-spec` | `/tech-spec` | Write a technical specification |
|
|
13
|
+
|
|
14
|
+
## Install
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npx @gonzih/skills-engineering
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Then restart Claude Code.
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
### `/architecture-doc`
|
|
25
|
+
```
|
|
26
|
+
/architecture-doc We need to decide between a monorepo and polyrepo for our new platform.
|
|
27
|
+
```
|
|
28
|
+
Produces an ADR with context, options considered, decision, and consequences.
|
|
29
|
+
|
|
30
|
+
### `/code-review-brief`
|
|
31
|
+
```
|
|
32
|
+
/code-review-brief [paste PR description or diff]
|
|
33
|
+
```
|
|
34
|
+
Produces a review summary with key changes, risk areas, and a testing checklist.
|
|
35
|
+
|
|
36
|
+
### `/incident-postmortem`
|
|
37
|
+
```
|
|
38
|
+
/incident-postmortem Database went down at 14:32 UTC, came back at 15:19 UTC. Root cause was a bad deploy.
|
|
39
|
+
```
|
|
40
|
+
Produces a blameless postmortem with timeline, root cause, contributing factors, and action items.
|
|
41
|
+
|
|
42
|
+
### `/tech-spec`
|
|
43
|
+
```
|
|
44
|
+
/tech-spec Rate limiting on our public API — need per-user and per-IP limits.
|
|
45
|
+
```
|
|
46
|
+
Produces a spec with goals, non-goals, proposed solution, API design, rollout plan, and open questions.
|
|
47
|
+
|
|
48
|
+
## License
|
|
49
|
+
|
|
50
|
+
MIT
|
package/install.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { copyFileSync, mkdirSync, existsSync } from 'fs';
|
|
3
|
+
import { join } from 'path';
|
|
4
|
+
import { homedir } from 'os';
|
|
5
|
+
|
|
6
|
+
const skillsDir = join(homedir(), '.claude', 'skills');
|
|
7
|
+
const skills = ['architecture-doc', 'code-review-brief', 'incident-postmortem', 'tech-spec'];
|
|
8
|
+
|
|
9
|
+
for (const skill of skills) {
|
|
10
|
+
const dest = join(skillsDir, skill);
|
|
11
|
+
if (!existsSync(dest)) mkdirSync(dest, { recursive: true });
|
|
12
|
+
copyFileSync(new URL(`./skills/${skill}/SKILL.md`, import.meta.url).pathname, join(dest, 'SKILL.md'));
|
|
13
|
+
console.log(`✓ Installed /${skill}`);
|
|
14
|
+
}
|
|
15
|
+
console.log('\nSkills installed! Restart Claude Code to use them.');
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@gonzih/skills-engineering",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Claude Code skill suite for software engineers, tech leads, and engineering managers",
|
|
6
|
+
"main": "install.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"skills-engineering": "./install.js"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"postinstall": "node install.js"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"skills/",
|
|
15
|
+
"install.js",
|
|
16
|
+
"README.md",
|
|
17
|
+
"LICENSE"
|
|
18
|
+
],
|
|
19
|
+
"keywords": [
|
|
20
|
+
"claude",
|
|
21
|
+
"claude-code",
|
|
22
|
+
"skills",
|
|
23
|
+
"engineering",
|
|
24
|
+
"architecture",
|
|
25
|
+
"postmortem",
|
|
26
|
+
"tech-spec",
|
|
27
|
+
"code-review"
|
|
28
|
+
],
|
|
29
|
+
"author": "gonzih",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: architecture-doc
|
|
3
|
+
description: Generate an architecture decision record (ADR) or system design doc covering context, options considered, decision, and consequences.
|
|
4
|
+
triggers: ["architecture doc", "write an ADR", "architecture decision record", "system design doc", "document this decision"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Architecture Doc
|
|
8
|
+
|
|
9
|
+
## What this skill does
|
|
10
|
+
Produces a structured Architecture Decision Record (ADR) or system design document from a brief description of the problem space. It captures the context driving the decision, the options that were evaluated, the chosen approach, and the consequences — both positive and negative — of that choice.
|
|
11
|
+
|
|
12
|
+
## How to invoke
|
|
13
|
+
/architecture-doc [decision or system to document]
|
|
14
|
+
|
|
15
|
+
## Workflow steps
|
|
16
|
+
|
|
17
|
+
### Step 1 — Gather context
|
|
18
|
+
Ask clarifying questions if the trigger message is sparse: What problem are we solving? What constraints apply (team size, latency, cost, existing stack)? What is the scope — single service, cross-cutting concern, or full system?
|
|
19
|
+
|
|
20
|
+
### Step 2 — Draft the document
|
|
21
|
+
Produce a document with the following sections:
|
|
22
|
+
- **Title** — short imperative phrase (e.g. "Use Kafka for async event delivery")
|
|
23
|
+
- **Status** — Proposed / Accepted / Deprecated / Superseded
|
|
24
|
+
- **Context** — background, forces at play, and why a decision is needed now
|
|
25
|
+
- **Options considered** — at least two alternatives, each with pros and cons
|
|
26
|
+
- **Decision** — the chosen option and the primary rationale
|
|
27
|
+
- **Consequences** — what becomes easier, what becomes harder, open risks
|
|
28
|
+
|
|
29
|
+
### Step 3 — Review and refine
|
|
30
|
+
Present the draft and offer to adjust: swap in a different decision, add an option, expand the consequences, or reformat as a Markdown file ready to commit to a `docs/adr/` directory.
|
|
31
|
+
|
|
32
|
+
## Example outputs
|
|
33
|
+
A Markdown document titled "ADR-0012: Adopt event sourcing for the orders domain" with a two-paragraph context section, a comparison table of three options, a clear decision statement, and a bullet list of consequences including a note on operational complexity.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: code-review-brief
|
|
3
|
+
description: Write a code review summary covering what changed, why, risk areas to scrutinize, and a testing checklist.
|
|
4
|
+
triggers: ["code review brief", "review summary", "write a review brief", "summarize this PR", "review checklist"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Code Review Brief
|
|
8
|
+
|
|
9
|
+
## What this skill does
|
|
10
|
+
Produces a structured code review brief from a pull request description, diff, or verbal summary of changes. It surfaces what changed and why, calls out the riskiest areas for reviewers to focus on, and generates a concrete testing checklist so nothing falls through the cracks.
|
|
11
|
+
|
|
12
|
+
## How to invoke
|
|
13
|
+
/code-review-brief [PR description, diff, or summary of changes]
|
|
14
|
+
|
|
15
|
+
## Workflow steps
|
|
16
|
+
|
|
17
|
+
### Step 1 — Understand the change
|
|
18
|
+
Parse the provided input. If given a diff or file list, identify the affected layers (data model, API, business logic, UI, infra). If the input is a natural-language summary, ask for the PR title and key files changed if they are not present.
|
|
19
|
+
|
|
20
|
+
### Step 2 — Draft the brief
|
|
21
|
+
Produce a document with the following sections:
|
|
22
|
+
- **Summary** — one paragraph: what changed, why it was needed, and the intended outcome
|
|
23
|
+
- **Key changes** — bullet list of the most significant modifications grouped by layer or concern
|
|
24
|
+
- **Risk areas** — ranked list of spots that deserve the closest review attention, with a one-line reason for each (e.g. "Auth middleware — privilege escalation if condition is inverted")
|
|
25
|
+
- **Testing checklist** — concrete, checkable items covering happy path, edge cases, regressions, and rollback/feature-flag behaviour where applicable
|
|
26
|
+
|
|
27
|
+
### Step 3 — Tailor and hand off
|
|
28
|
+
Offer to expand any section, add a migration or deploy note, or reformat the brief as a GitHub PR comment ready to paste.
|
|
29
|
+
|
|
30
|
+
## Example outputs
|
|
31
|
+
A brief for a database schema migration PR with a two-sentence summary, five bullet points of key changes, three risk areas flagged (index drop, backfill script, ORM model sync), and a nine-item testing checklist including a rollback verification step.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: incident-postmortem
|
|
3
|
+
description: Write a blameless postmortem covering timeline, root cause, contributing factors, and action items with owners.
|
|
4
|
+
triggers: ["incident postmortem", "write a postmortem", "blameless postmortem", "post-incident review", "incident report"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Incident Postmortem
|
|
8
|
+
|
|
9
|
+
## What this skill does
|
|
10
|
+
Produces a blameless postmortem document from an incident summary, chat logs, or verbal description of what happened. It reconstructs the event timeline, identifies the root cause and contributing factors using systems-thinking rather than finger-pointing, and surfaces concrete action items with suggested owners to prevent recurrence.
|
|
11
|
+
|
|
12
|
+
## How to invoke
|
|
13
|
+
/incident-postmortem [incident summary, timeline notes, or description of what happened]
|
|
14
|
+
|
|
15
|
+
## Workflow steps
|
|
16
|
+
|
|
17
|
+
### Step 1 — Collect incident data
|
|
18
|
+
Extract or ask for: incident start and end times, severity/impact (users affected, revenue, SLA breach), services involved, who responded, and a rough sequence of events. If chat logs or monitoring screenshots are available, use them to anchor the timeline.
|
|
19
|
+
|
|
20
|
+
### Step 2 — Draft the postmortem
|
|
21
|
+
Produce a document with the following sections:
|
|
22
|
+
- **Incident summary** — one paragraph: what broke, duration, customer impact, and severity level
|
|
23
|
+
- **Timeline** — chronological table of events (UTC timestamps, event description, actor)
|
|
24
|
+
- **Root cause** — the deepest systemic cause, stated without blaming individuals
|
|
25
|
+
- **Contributing factors** — other conditions that made the incident worse or harder to detect (e.g. lack of alerting, deployment process gap, unclear runbook)
|
|
26
|
+
- **What went well** — things the team did right during the response
|
|
27
|
+
- **Action items** — table with columns: Action | Owner | Priority | Due date. Minimum: one item addressing root cause, one improving detection, one improving response.
|
|
28
|
+
|
|
29
|
+
### Step 3 — Review and finalize
|
|
30
|
+
Offer to sharpen the root cause statement, add a "lessons learned" narrative section, adjust tone for executive vs. engineering audiences, or export as a Confluence-ready format.
|
|
31
|
+
|
|
32
|
+
## Example outputs
|
|
33
|
+
A postmortem for a 47-minute database failover incident with a six-row timeline, a root cause of "manual failover runbook not tested after infrastructure upgrade," three contributing factors, two "went well" items, and a five-row action items table with owners and due dates.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tech-spec
|
|
3
|
+
description: Write a technical specification covering goals, non-goals, proposed solution, API design, rollout plan, and open questions.
|
|
4
|
+
triggers: ["tech spec", "write a spec", "technical specification", "design doc", "RFC", "write an RFC"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Tech Spec
|
|
8
|
+
|
|
9
|
+
## What this skill does
|
|
10
|
+
Produces a technical specification from a feature idea, bug mitigation plan, or system change description. It defines what is and is not in scope, proposes a concrete solution with enough detail to start implementation, sketches the API or data model, and surfaces open questions that need resolution before work begins.
|
|
11
|
+
|
|
12
|
+
## How to invoke
|
|
13
|
+
/tech-spec [feature, change, or problem to specify]
|
|
14
|
+
|
|
15
|
+
## Workflow steps
|
|
16
|
+
|
|
17
|
+
### Step 1 — Clarify scope
|
|
18
|
+
Ask if needed: What is the motivation or user need? Who are the stakeholders? Are there hard constraints (latency, cost, backward compatibility, regulatory)? What is the target ship date or milestone?
|
|
19
|
+
|
|
20
|
+
### Step 2 — Draft the specification
|
|
21
|
+
Produce a document with the following sections:
|
|
22
|
+
- **Overview** — one paragraph describing what is being built and why
|
|
23
|
+
- **Goals** — bullet list of outcomes the spec must achieve
|
|
24
|
+
- **Non-goals** — explicit list of things this spec intentionally does not address
|
|
25
|
+
- **Proposed solution** — narrative description of the approach, key components, and how they interact; include a simple ASCII or Mermaid diagram if helpful
|
|
26
|
+
- **API / interface design** — endpoints, function signatures, data schemas, or CLI flags as appropriate; use code blocks
|
|
27
|
+
- **Rollout plan** — phases, feature flags, migration steps, and rollback strategy
|
|
28
|
+
- **Alternatives considered** — brief note on other approaches that were rejected and why
|
|
29
|
+
- **Open questions** — numbered list of unresolved decisions with a suggested owner for each
|
|
30
|
+
|
|
31
|
+
### Step 3 — Iterate
|
|
32
|
+
Offer to expand any section, add a security or privacy consideration section, generate a skeleton implementation, or produce a trimmed one-pager version for stakeholder alignment.
|
|
33
|
+
|
|
34
|
+
## Example outputs
|
|
35
|
+
A spec for a rate-limiting feature with a two-paragraph overview, five goals, three non-goals, a solution section describing a token-bucket algorithm backed by Redis, a `POST /api/rate-limit/config` endpoint schema, a three-phase rollout with a feature flag, and four open questions around burst limits, observability, and multi-region behaviour.
|