kitskill 0.0.0-stage → 0.1.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 +397 -2
- package/THIRD-PARTY-NOTICES.md +24 -0
- package/banner.jpeg +0 -0
- package/bin/cli.mjs +464 -0
- package/lib/fs-safe.mjs +136 -0
- package/lib/hook.mjs +79 -0
- package/lib/installer.mjs +449 -0
- package/lib/manifest.mjs +47 -0
- package/lib/permissions.mjs +175 -0
- package/lib/profile.mjs +124 -0
- package/lib/project-scan.mjs +186 -0
- package/lib/validator.mjs +72 -0
- package/logo.png +0 -0
- package/logohead.png +0 -0
- package/package.json +54 -4
- package/templates/core/memory/PROJECT.md +33 -0
- package/templates/core/memory/decisions/ADR.md +22 -0
- package/templates/core/profile.json +17 -0
- package/templates/core/router.md +89 -0
- package/templates/core/state/STATE.md +32 -0
- package/templates/opencode/policy-plugin.js +66 -0
- package/templates/scripts/graph-client.mjs +231 -0
- package/templates/scripts/review-packet.mjs +250 -0
- package/templates/scripts/shrink-output.mjs +159 -0
- package/templates/scripts/ui-audit.mjs +639 -0
- package/templates/scripts/verify.mjs +293 -0
- package/templates/skills/ks-api/SKILL.md +87 -0
- package/templates/skills/ks-api/references/api-contract.md +131 -0
- package/templates/skills/ks-build/SKILL.md +92 -0
- package/templates/skills/ks-data/SKILL.md +81 -0
- package/templates/skills/ks-data/references/data-migrations.md +120 -0
- package/templates/skills/ks-deliver/SKILL.md +99 -0
- package/templates/skills/ks-deliver/references/doc-patterns.md +180 -0
- package/templates/skills/ks-design/SKILL.md +147 -0
- package/templates/skills/ks-design/references/app-models.md +216 -0
- package/templates/skills/ks-design/references/design-contract.md +98 -0
- package/templates/skills/ks-design/references/visual-directions.md +159 -0
- package/templates/skills/ks-plan/SKILL.md +84 -0
- package/templates/skills/ks-review/SKILL.md +71 -0
- package/templates/skills/ks-secure/SKILL.md +55 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ks-secure
|
|
3
|
+
description: "Run a focused security review. Use when a change touches auth, secrets, data, external input, uploads, webhooks, payments, infrastructure, or agent configuration."
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# ks-secure
|
|
8
|
+
|
|
9
|
+
Check the attack surface the change actually touches.
|
|
10
|
+
|
|
11
|
+
## When to use
|
|
12
|
+
|
|
13
|
+
- Authentication, authorization, sessions, tokens, or permissions.
|
|
14
|
+
- Secrets, credentials, or configuration.
|
|
15
|
+
- SQL/ORM, persistence, migrations, or data exports.
|
|
16
|
+
- External input, uploads, webhooks, redirects, or URLs.
|
|
17
|
+
- Payments, billing, or personally identifiable data.
|
|
18
|
+
- CI, infrastructure, or agent permissions.
|
|
19
|
+
|
|
20
|
+
## Checklist
|
|
21
|
+
|
|
22
|
+
- **Authn/authz:** every sensitive action checks identity and permission on the
|
|
23
|
+
server. Missing identity denies; never fail open.
|
|
24
|
+
- **IDOR:** object access is scoped to the caller.
|
|
25
|
+
- **Injection:** parameterized queries; no string-built SQL or shell.
|
|
26
|
+
- **XSS:** output encoded; user HTML sanitized.
|
|
27
|
+
- **CSRF:** state-changing requests protected.
|
|
28
|
+
- **SSRF/path traversal:** URLs and paths validated and allowlisted.
|
|
29
|
+
- **Secrets:** none in code, logs, errors, URLs, or the diff.
|
|
30
|
+
- **Input validation:** allowlist, size limits, type checks.
|
|
31
|
+
- **Uploads:** type, size, extension, and storage location controlled.
|
|
32
|
+
- **Errors:** no stack traces, SQL, or secrets exposed to users.
|
|
33
|
+
- **Rate limiting:** on authentication and expensive endpoints.
|
|
34
|
+
- **Dependencies:** no new unpinned or unmaintained package.
|
|
35
|
+
- **Agent config:** no broad shell, no unpinned MCP server, no secret in config.
|
|
36
|
+
|
|
37
|
+
## Rules
|
|
38
|
+
|
|
39
|
+
- Textual rules are advisory; runtime permissions are the boundary.
|
|
40
|
+
- Do not print or copy a secret; cite the file and line.
|
|
41
|
+
- Report only what the diff or its immediate dependencies affect.
|
|
42
|
+
- Distinguish a confirmed issue from a suspicion.
|
|
43
|
+
- If a check was not possible, mark it `UNVERIFIED`.
|
|
44
|
+
|
|
45
|
+
## Output
|
|
46
|
+
|
|
47
|
+
`file:line — severity — issue — fix`
|
|
48
|
+
|
|
49
|
+
Then: scope reviewed, checks not applicable, and what remains unverified.
|
|
50
|
+
|
|
51
|
+
## Exit criteria
|
|
52
|
+
|
|
53
|
+
- Every applicable check has a result.
|
|
54
|
+
- Blockers are fixed or explicitly accepted.
|
|
55
|
+
- No secret appears in the report.
|