kiro-10x-better 1.0.0 → 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/README.md
CHANGED
|
@@ -12,6 +12,8 @@ Run inside any project directory (Node.js 18+):
|
|
|
12
12
|
npx kiro-10x-better
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
+
> Using `pnpm`? You can also run `pnpm dlx kiro-10x-better`.
|
|
16
|
+
|
|
15
17
|
Or install globally into `~/.kiro/`:
|
|
16
18
|
|
|
17
19
|
```bash
|
|
@@ -31,7 +33,10 @@ npx kiro-10x-better --global
|
|
|
31
33
|
## What Gets Installed
|
|
32
34
|
|
|
33
35
|
- **Steering (`steering/core-rules.md`):** Karpathy-style minimal diffs, fast CLI preferences (`rg`, `ast-grep`, `jq`, `gh`), token-saving rules, and verification honesty.
|
|
34
|
-
- **
|
|
36
|
+
- **Skills (`skills/`):**
|
|
37
|
+
- `pro-workflow/SKILL.md`: Git worktree isolation, 4-step root-cause debugging, loop engineering (1 hypothesis → 1 edit → 1 targeted check, 2–3 iteration cap), subagent context handoff, and verification before completion.
|
|
38
|
+
- `code-review/SKILL.md`: Three-axis diff review (Spec & Correctness, Standards & Security, Simplification Opportunities) with `file:line` findings and anti-recursion subagent guard.
|
|
39
|
+
- `codebase-design/SKILL.md`: Deep-module architecture vocabulary, Deletion Test, Seam & Adapter rule, and bounded design interview / architecture review modes.
|
|
35
40
|
- **Hooks (`hooks/`):**
|
|
36
41
|
- `security-guard.json` + `scripts/guard.cjs` (`PreToolUse`): Hard-blocks destructive commands (`rm -rf`, `git push --force`, `git reset --hard`, `DROP TABLE`) and writes to `.env` or private key files.
|
|
37
42
|
- `auto-lint.json` (`PostFileSave`): Auto-detects `pnpm`/`yarn`/`npm` and `biome`/`eslint`/`prettier` from your project (or disables itself if none are found).
|
package/bin/cli.mjs
CHANGED
|
@@ -113,6 +113,20 @@ function copyTemplateFile(relTemplatePath, destPath, ctx) {
|
|
|
113
113
|
return writeTargetFile(destPath, content, ctx);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
function copyDirRecursive(relTemplateDir, destDir, labelPrefix, ctx) {
|
|
117
|
+
const srcDir = path.join(TEMPLATES_DIR, relTemplateDir);
|
|
118
|
+
for (const entry of fs.readdirSync(srcDir, { withFileTypes: true })) {
|
|
119
|
+
const relChild = path.join(relTemplateDir, entry.name);
|
|
120
|
+
const destChild = path.join(destDir, entry.name);
|
|
121
|
+
const childLabel = `${labelPrefix}/${entry.name}`;
|
|
122
|
+
if (entry.isDirectory()) {
|
|
123
|
+
copyDirRecursive(relChild, destChild, childLabel, ctx);
|
|
124
|
+
} else {
|
|
125
|
+
copyTemplateFile(relChild, destChild, { ...ctx, label: childLabel });
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
116
130
|
function buildAutoLintConfig(stack) {
|
|
117
131
|
const config = JSON.parse(
|
|
118
132
|
fs.readFileSync(path.join(TEMPLATES_DIR, "hooks", "auto-lint.json"), "utf8")
|
|
@@ -248,16 +262,17 @@ async function main() {
|
|
|
248
262
|
|
|
249
263
|
console.log(`\nSetting up Kiro CLI V3 in ${targetKiroDir}\n`);
|
|
250
264
|
|
|
251
|
-
// Copy core steering,
|
|
265
|
+
// Copy core steering, skills (recursively), and guard script
|
|
252
266
|
copyTemplateFile(
|
|
253
267
|
path.join("steering", "core-rules.md"),
|
|
254
268
|
path.join(targetKiroDir, "steering", "core-rules.md"),
|
|
255
269
|
{ force: flags.force, label: `${prefixLabel}/steering/core-rules.md`, tracker }
|
|
256
270
|
);
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
path.join(targetKiroDir, "skills"
|
|
260
|
-
|
|
271
|
+
copyDirRecursive(
|
|
272
|
+
"skills",
|
|
273
|
+
path.join(targetKiroDir, "skills"),
|
|
274
|
+
`${prefixLabel}/skills`,
|
|
275
|
+
{ force: flags.force, tracker }
|
|
261
276
|
);
|
|
262
277
|
copyTemplateFile(
|
|
263
278
|
path.join("hooks", "scripts", "guard.cjs"),
|
|
@@ -309,9 +324,15 @@ async function main() {
|
|
|
309
324
|
}
|
|
310
325
|
|
|
311
326
|
// Summary
|
|
327
|
+
const bundledSkills = fs
|
|
328
|
+
.readdirSync(path.join(TEMPLATES_DIR, "skills"), { withFileTypes: true })
|
|
329
|
+
.filter((entry) => entry.isDirectory())
|
|
330
|
+
.map((entry) => entry.name);
|
|
331
|
+
|
|
312
332
|
console.log("\n--- Summary ---");
|
|
313
333
|
console.log(`Created/Updated: ${tracker.created.length}`);
|
|
314
334
|
console.log(`Skipped: ${tracker.skipped.length}`);
|
|
335
|
+
console.log(`Bundled Skills: ${bundledSkills.join(", ")}`);
|
|
315
336
|
if (stack) {
|
|
316
337
|
console.log(
|
|
317
338
|
`Detected Stack: pm=${stack.pm}, linter=${stack.linter ?? "none (disabled)"}, typescript=${stack.typescript ? "yes" : "no (disabled)"}`
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kiro-10x-better",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Instant, zero-dependency CLI to set up a high-discipline Kiro CLI V3 environment with hooks, steering rules, skills, and permissions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"kiro-10x-better": "
|
|
7
|
+
"kiro-10x-better": "bin/cli.mjs"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"bin",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: code-review
|
|
3
|
+
description: Use when reviewing pull requests, branches, or recent git changes, or when asked to simplify, audit, or check code quality before committing.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Code Review & Simplify (Standards + Spec + Simplification)
|
|
7
|
+
|
|
8
|
+
## 1. Scope the Diff First
|
|
9
|
+
- Identify the comparison base (`git diff main...HEAD` or `git diff` for unstaged changes) and `git log --oneline -n 10`.
|
|
10
|
+
- Read only changed files and their immediate callers (`rg`). Never scan unrelated directories.
|
|
11
|
+
- **Subagent Guard:** If delegating checks to a subagent, explicitly instruct it NOT to invoke `/code-review` recursively.
|
|
12
|
+
|
|
13
|
+
## 2. Evaluate Along Three Focused Axes
|
|
14
|
+
1. **Spec & Correctness:** Does the diff fulfill every requirement? Check edge cases, null/empty states, async race conditions, and error handling.
|
|
15
|
+
2. **Standards & Security:** Does it match repo conventions (`core-rules.md`)? Flag hardcoded secrets, missing input validation, or unsafe shell/SQL/file operations.
|
|
16
|
+
3. **Simplify Pass (Anti-Bloat):** Flag shallow pass-through wrappers, duplicated logic, dead code, or speculative abstractions that can be deleted or collapsed.
|
|
17
|
+
|
|
18
|
+
## 3. Output Format
|
|
19
|
+
Report findings grouped under `## Correctness & Spec`, `## Standards & Security`, and `## Simplification Opportunities` with exact `file:line` references, severity (`High` / `Medium` / `Low`), and a concrete fix. End with a 1-line verdict.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: codebase-design
|
|
3
|
+
description: Use when designing a new module, planning architecture, refactoring shallow wrappers, defining interfaces/seams, or asking for a design interview before coding.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Codebase Design (Deep Modules & Bounded Architecture)
|
|
7
|
+
|
|
8
|
+
## 1. Core Design Vocabulary
|
|
9
|
+
- **Module:** Any unit with an interface and an implementation (function, class, package, or feature slice).
|
|
10
|
+
- **Interface:** Everything a caller must know—type signature, invariants, ordering rules, error modes, and performance/config assumptions.
|
|
11
|
+
- **Deep Module (Goal):** High leverage—lots of complex behavior hidden behind a small, simple, stable interface.
|
|
12
|
+
- **Shallow Module (Smell):** Interface is nearly as complex as the implementation inside it.
|
|
13
|
+
- **The Deletion Test:** Imagine deleting the module. If complexity disappears, it was a useless pass-through. If complexity spills across N callers, the module was hiding real work.
|
|
14
|
+
- **Seam & Adapter Rule:** One adapter = a hypothetical seam (do not abstract yet). Two real adapters = a real seam worth cutting.
|
|
15
|
+
|
|
16
|
+
## 2. Bounded Process (Never Refactor Without Approval)
|
|
17
|
+
When invoked, follow ONLY the mode that matches the user's request—do NOT edit files automatically:
|
|
18
|
+
- **Mode A — New Feature / Design Interview ("grill me"):** Ask 3–5 sharp, high-leverage questions about invariants, failure modes, and interface shape before proposing a module boundary.
|
|
19
|
+
- **Mode B — Architecture Review:** Inspect hot-spot files (`git log --oneline -n 20`) or the user's target folder, list the top **3 deepening candidates** with a brief Before/After interface sketch, and **STOP** to let the user pick one.
|