kracked-core 1.0.0 → 1.4.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/README.md +41 -3
- package/bin/kracked-core.mjs +29 -2
- package/package.json +1 -1
- package/src/detect.mjs +67 -12
- package/src/prompt.mjs +339 -0
- package/src/scaffold.mjs +99 -20
- package/src/uninstall.mjs +214 -0
- package/src/update.mjs +150 -0
- package/src/wizard.mjs +167 -82
- package/templates/loaders/AGENTS.md +2 -0
- package/templates/loaders/CLAUDE.md +1 -0
- package/templates/loaders/antigravity-rules.md +1 -0
- package/templates/project/sdd/README.md +46 -0
- package/templates/project/sdd/architecture/.gitkeep +0 -0
- package/templates/project/sdd/architecture/_TEMPLATE.md +51 -0
- package/templates/project/sdd/architecture/decisions/_TEMPLATE.md +40 -0
- package/templates/project/sdd/epics/.gitkeep +0 -0
- package/templates/project/sdd/epics/_TEMPLATE.md +34 -0
- package/templates/project/sdd/specs/_TEMPLATE.md +44 -0
- package/templates/project/sdd/stories/.gitkeep +0 -0
- package/templates/project/sdd/stories/_TEMPLATE.md +33 -0
- package/templates/skills/kracked-boot/SKILL.md +13 -5
- package/templates/skills/kracked-identity/SKILL.md +70 -0
- package/templates/skills/kracked-sdd/SKILL.md +36 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: kracked-identity
|
|
3
|
+
description: Use when the user wants to change their agent's name, personality, or communication style, or to record how they like to work — anything about who the agent is or what it should remember about them.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Help the user shape who you are and how you work with them. Two files, two purposes — keep them
|
|
7
|
+
straight, because mixing them up is the most common mistake.
|
|
8
|
+
|
|
9
|
+
| File | Holds | Example |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| `~/.kracked/identity.md` | Who the AGENT is | name, tone, how direct to be |
|
|
12
|
+
| `~/.kracked/preferences.md` | How the USER works | their stack, their conventions, what to never do |
|
|
13
|
+
|
|
14
|
+
If they say "be less formal" → identity. If they say "I use Tailwind, stop suggesting CSS
|
|
15
|
+
modules" → preferences. When unsure, ask which one they mean rather than guessing.
|
|
16
|
+
|
|
17
|
+
## 1. Work out what they actually want to change
|
|
18
|
+
|
|
19
|
+
Read both files first, so you're editing from what's there rather than overwriting blind.
|
|
20
|
+
|
|
21
|
+
Then figure out which of these they're asking for:
|
|
22
|
+
|
|
23
|
+
- **Rename** — just the agent's name
|
|
24
|
+
- **Personality / tone** — how you talk to them
|
|
25
|
+
- **Preferences** — their stack, style, or a standing rule for you to follow
|
|
26
|
+
- **"I don't know, it just feels off"** — go to step 2
|
|
27
|
+
|
|
28
|
+
## 2. If they can't name it, ask about behaviour, not settings
|
|
29
|
+
|
|
30
|
+
Don't hand them a config form. Ask what's been annoying:
|
|
31
|
+
|
|
32
|
+
- "Am I too wordy, or not detailed enough?"
|
|
33
|
+
- "Do I explain too much before doing the work?"
|
|
34
|
+
- "Anything I keep suggesting that you never want?"
|
|
35
|
+
- "Anything I keep getting wrong about your setup?"
|
|
36
|
+
|
|
37
|
+
Turn each answer into a concrete line. "Be less annoying" is not actionable; "answer first, then
|
|
38
|
+
explain, and don't restate my question back to me" is.
|
|
39
|
+
|
|
40
|
+
## 3. Make the edit
|
|
41
|
+
|
|
42
|
+
Edit the file directly — surgical changes, not a rewrite. Keep the existing structure and only
|
|
43
|
+
touch the lines that need to change.
|
|
44
|
+
|
|
45
|
+
- Renaming: update the name in `identity.md`. Mention that `AGENTS.md` in their projects may
|
|
46
|
+
also name the agent, and offer to update those too.
|
|
47
|
+
- Tone/personality: edit the "How I work" or "Communication style" section.
|
|
48
|
+
- Preferences: add to the right section of `preferences.md`. One line per rule, specific enough
|
|
49
|
+
to act on.
|
|
50
|
+
|
|
51
|
+
**Never invent preferences they didn't state.** If you observed something during the session
|
|
52
|
+
("you corrected me twice about using Postgres, not MySQL"), say so and ask whether to write it
|
|
53
|
+
down — don't just write it.
|
|
54
|
+
|
|
55
|
+
## 4. Read the change back
|
|
56
|
+
|
|
57
|
+
Show them the lines you changed, exactly as written. Then say plainly:
|
|
58
|
+
|
|
59
|
+
> This takes effect at your next boot. Run `/kracked-boot` in a fresh session to load it.
|
|
60
|
+
|
|
61
|
+
Do not claim the change is already active in the current session — memory is read at boot.
|
|
62
|
+
|
|
63
|
+
## Two things worth telling them once
|
|
64
|
+
|
|
65
|
+
- **These are plain markdown files they own.** They can open `~/.kracked/identity.md` in any
|
|
66
|
+
editor and change it directly. Doing that is often faster than asking you.
|
|
67
|
+
- **Global vs project.** Identity and preferences are global — they apply everywhere. Anything
|
|
68
|
+
true only for one codebase (its stack, conventions, structure) belongs in that project's
|
|
69
|
+
`.kracked/project.md` instead. Putting project detail in global memory makes you apply it to
|
|
70
|
+
every other project, which is the most common way this system goes wrong.
|
|
@@ -27,24 +27,59 @@ Classify before doing any ceremony. Say the classification out loud in one line,
|
|
|
27
27
|
Over-ceremony on a small task is a failure mode, not thoroughness. Do not write a spec file for a
|
|
28
28
|
typo fix.
|
|
29
29
|
|
|
30
|
+
## Where documents live
|
|
31
|
+
|
|
32
|
+
Copy the matching `_TEMPLATE.md` in each folder rather than inventing a structure.
|
|
33
|
+
|
|
34
|
+
| Folder | Holds |
|
|
35
|
+
|---|---|
|
|
36
|
+
| `.kracked/sdd/specs/` | What to build and why |
|
|
37
|
+
| `.kracked/sdd/epics/` | A group of related stories |
|
|
38
|
+
| `.kracked/sdd/stories/` | One independently shippable slice |
|
|
39
|
+
| `.kracked/sdd/architecture/` | How it's put together — large/risky work only |
|
|
40
|
+
| `.kracked/sdd/architecture/decisions/` | ADRs, numbered `0001-`, never renumbered |
|
|
41
|
+
| `.kracked/sdd/tracker.md` | Status + evidence for every story |
|
|
42
|
+
|
|
43
|
+
Naming: `specs/login.md`, `epics/1-authentication.md`, `stories/1.1-email-login.md`. Story IDs are
|
|
44
|
+
`<epic>.<story>` and MUST match the ID in `tracker.md` — that link is what makes the tracker
|
|
45
|
+
trustworthy.
|
|
46
|
+
|
|
30
47
|
## 2. Spec stage
|
|
31
48
|
|
|
32
|
-
|
|
49
|
+
Copy `.kracked/sdd/specs/_TEMPLATE.md` to `.kracked/sdd/specs/<short-name>.md` and fill it in:
|
|
33
50
|
|
|
34
51
|
- **What** — the feature or change, in plain language
|
|
35
52
|
- **Why** — the problem it solves, for whom
|
|
36
53
|
- **Acceptance criteria** — concrete, checkable conditions for "this works"
|
|
37
54
|
- **Out of scope** — explicitly list what this spec does NOT cover. This is not optional; scope
|
|
38
55
|
creep starts where this section is skipped.
|
|
56
|
+
- **Edge cases** — for every input: what if it's empty, missing, or unexpected?
|
|
39
57
|
|
|
40
58
|
Confirm the spec with the user before moving on, unless the request was classified trivial/small
|
|
41
59
|
and the spec is short enough that building it IS the confirmation.
|
|
42
60
|
|
|
61
|
+
## 2b. Architecture — only when the work is large or risky
|
|
62
|
+
|
|
63
|
+
If the job is **large or risky** (new service, data model change, auth, payments, anything
|
|
64
|
+
touching money or user data), write an architecture doc from
|
|
65
|
+
`.kracked/sdd/architecture/_TEMPLATE.md` BEFORE building — the shape, the data model, and the
|
|
66
|
+
failure modes.
|
|
67
|
+
|
|
68
|
+
For a decision someone would otherwise re-litigate later (why this database, why this pattern),
|
|
69
|
+
add a numbered ADR from `architecture/decisions/_TEMPLATE.md`.
|
|
70
|
+
|
|
71
|
+
**Do not write either for a small feature.** Ceremony on small work is why people abandon a
|
|
72
|
+
process. Say plainly which you're writing and why, or say you're skipping them and why.
|
|
73
|
+
|
|
43
74
|
## 3. Docs stage
|
|
44
75
|
|
|
45
76
|
Break the spec into stories. Each story must be independently shippable — a story that can't be
|
|
46
77
|
merged and left in a working state on its own is too big; split it further.
|
|
47
78
|
|
|
79
|
+
If there's more than one story, write an epic from `.kracked/sdd/epics/_TEMPLATE.md` and give each
|
|
80
|
+
story its own file from `.kracked/sdd/stories/_TEMPLATE.md`. A single-story job needs neither —
|
|
81
|
+
the spec is enough.
|
|
82
|
+
|
|
48
83
|
Add every story to `.kracked/sdd/tracker.md` with status `backlog`. Use this exact table shape —
|
|
49
84
|
do not invent columns:
|
|
50
85
|
|