@oneie/claude 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.
Files changed (59) hide show
  1. package/.claude-plugin/plugin.json +16 -0
  2. package/.mcp.json +12 -0
  3. package/README.md +204 -0
  4. package/agents/w1-recon.md +102 -0
  5. package/agents/w2-decide.md +164 -0
  6. package/agents/w3-edit.md +91 -0
  7. package/agents/w4-verify.md +416 -0
  8. package/commands/browser.md +55 -0
  9. package/commands/cc-connect.md +67 -0
  10. package/commands/claw.md +135 -0
  11. package/commands/close.md +143 -0
  12. package/commands/create.md +78 -0
  13. package/commands/deploy.md +415 -0
  14. package/commands/do-autonomous.md +80 -0
  15. package/commands/do-improve.md +51 -0
  16. package/commands/do-show.md +89 -0
  17. package/commands/do.md +226 -0
  18. package/commands/improve.md +99 -0
  19. package/commands/kill.md +45 -0
  20. package/commands/release.md +144 -0
  21. package/commands/see.md +161 -0
  22. package/commands/setup.md +75 -0
  23. package/commands/sync.md +185 -0
  24. package/hooks/hooks.json +90 -0
  25. package/hooks/lib/signal.sh +28 -0
  26. package/hooks/scripts/design-check.sh +83 -0
  27. package/hooks/scripts/post-edit-check.sh +32 -0
  28. package/hooks/scripts/session-end-verify.sh +51 -0
  29. package/hooks/scripts/session-start.sh +88 -0
  30. package/hooks/scripts/stop-reflect.sh +95 -0
  31. package/hooks/scripts/sync-todo-docs.sh +46 -0
  32. package/hooks/scripts/task-complete-verify.sh +52 -0
  33. package/hooks/scripts/tool-signal.sh +48 -0
  34. package/package.json +33 -0
  35. package/rules/api.md +50 -0
  36. package/rules/astro.md +206 -0
  37. package/rules/design.md +221 -0
  38. package/rules/documentation.md +218 -0
  39. package/rules/engine.md +297 -0
  40. package/rules/react.md +137 -0
  41. package/rules/ui.md +82 -0
  42. package/scripts/cc-connect.sh +345 -0
  43. package/scripts/do-analyze.sh +42 -0
  44. package/scripts/do-folder.sh +63 -0
  45. package/scripts/do-prove.sh +51 -0
  46. package/scripts/do-reconcile.sh +28 -0
  47. package/scripts/do-smoke.sh +60 -0
  48. package/scripts/do-survey.sh +30 -0
  49. package/scripts/do-tier.sh +43 -0
  50. package/skills/build/SKILL.md +52 -0
  51. package/skills/cloudflare/SKILL.md +503 -0
  52. package/skills/dev/SKILL.md +58 -0
  53. package/skills/do/SKILL.md +24 -0
  54. package/skills/oneie/SKILL.md +51 -0
  55. package/skills/perf/SKILL.md +45 -0
  56. package/skills/signal/SKILL.md +108 -0
  57. package/skills/sui/SKILL.md +441 -0
  58. package/skills/tutorial/SKILL.md +96 -0
  59. package/skills/typecheck/SKILL.md +66 -0
@@ -0,0 +1,96 @@
1
+ ---
2
+ name: tutorial
3
+ description: Walk a human and an agent through the complete ONE substrate lifecycle — birth to knowledge.
4
+ user-invocable: true
5
+ allowed-tools: Bash(*), Read(*), Edit(*), Write(*), Glob(*), Grep(*), WebFetch(*)
6
+ ---
7
+
8
+ # /tutorial — The Complete Lifecycle
9
+
10
+ Interactive walkthrough of the ONE substrate. Seven phases. The API does the work.
11
+
12
+ **Prerequisite:** Dev server running (`bun run dev` / `bun dev` at localhost:4321).
13
+
14
+ ## How It Works
15
+
16
+ The teacher is a real agent in the substrate. Each phase executes real operations.
17
+ Student progress is real pheromone on real paths. The API tracks everything.
18
+
19
+ ## Walkthrough Flow
20
+
21
+ Walk the user through all 7 phases sequentially. For each phase:
22
+
23
+ 1. **Execute** — Call the tutorial API to run the phase
24
+ 2. **Show** — Display what happened (actions taken, state changes)
25
+ 3. **Explain** — Help the user understand what the substrate learned
26
+ 4. **Pause** — Ask if they want to continue to the next phase
27
+
28
+ ### Before Starting
29
+
30
+ Check progress for any previous sessions:
31
+
32
+ ```bash
33
+ curl -s http://localhost:4321/api/tutorial?student=claude-code | jq .
34
+ ```
35
+
36
+ ### Phase Execution
37
+
38
+ For each phase N (1 through 7):
39
+
40
+ ```bash
41
+ curl -s -X POST http://localhost:4321/api/tutorial \
42
+ -H 'Content-Type: application/json' \
43
+ -d '{"phase": N, "student": "claude-code"}' | jq .
44
+ ```
45
+
46
+ ### The Seven Phases
47
+
48
+ | Phase | Title | What It Does |
49
+ |-------|-------|-------------|
50
+ | 1 | Birth | Creates the echo agent from markdown → TypeDB |
51
+ | 2 | Signal | Sends `entry→echo` signal, marks the path |
52
+ | 3 | Learn | Marks 5x, warns 1x — shows strength vs resistance |
53
+ | 4 | Decay | Runs asymmetric fade — resistance forgives 4x faster |
54
+ | 5 | Highway | Marks 20x — proves the path, shows LLM skip |
55
+ | 6 | Evolve | Queries struggling units, shows evolution criteria |
56
+ | 7 | Know | Shows hypotheses, frontiers, highways — the substrate's self-knowledge |
57
+
58
+ ### After Each Phase
59
+
60
+ Show the user:
61
+ - **Actions**: What the API actually did (created units, marked paths, etc.)
62
+ - **State**: The relevant substrate state after the operation
63
+ - **Progress**: How far through the tutorial they are (0% → 100%)
64
+ - **Next**: What phase comes next
65
+
66
+ ### The Biological Parallel
67
+
68
+ Weave this through the conversation:
69
+
70
+ ```
71
+ Birth = ant hatches
72
+ Signal = ant follows pheromone
73
+ Learn = ant deposits pheromone
74
+ Decay = pheromone evaporates
75
+ Highway = trail becomes superhighway
76
+ Evolve = colony adapts behavior
77
+ Know = colony discovers optimal foraging
78
+ ```
79
+
80
+ ### Completion
81
+
82
+ After phase 7, show final progress:
83
+
84
+ ```bash
85
+ curl -s http://localhost:4321/api/tutorial?student=claude-code | jq .
86
+ ```
87
+
88
+ Summarize the complete loop:
89
+
90
+ ```
91
+ BIRTH → SIGNAL → LEARN → DECAY → HIGHWAY → EVOLVE → KNOW
92
+ │ │
93
+ └────────────────────────────────────────────────────┘
94
+ ```
95
+
96
+ The substrate teaches about itself by using itself. No returns.
@@ -0,0 +1,66 @@
1
+ ---
2
+ name: typecheck
3
+ description: Run `tsc --noEmit` strict checks across the ONE workspace — `one.ie/web/`, `agents/`, `api/`, `sync/`, `backup/`, `packages/*`. Use when the user asks to "typecheck", "check types", before committing TypeScript changes, or as the stability gate. Each package has its own `tsconfig.json`; run in the package directory or via `bun run --filter '*' typecheck` from `packages/`.
4
+ user-invocable: true
5
+ allowed-tools: Bash
6
+ ---
7
+
8
+ # TypeScript Type Check
9
+
10
+ **Skills:** `/do` (W4 verify runs this — types must be clean for rubric `stability` dim) · `/deploy` (W0 baseline gate — `scripts/typecheck.sh` wraps tsc and suppresses the known internal stack-overflow bug per memory `feedback_typecheck_crash.md`: real errors start with `TS####`)
11
+
12
+ Run TypeScript compiler in check mode without emitting files.
13
+
14
+ ## Commands
15
+
16
+ ```bash
17
+ # Single package
18
+ cd one.ie/web && bunx tsc --noEmit
19
+
20
+ # All packages (workspace)
21
+ cd packages && bun run --filter '*' typecheck
22
+ ```
23
+
24
+ ## Expected Output
25
+
26
+ Success:
27
+ ```
28
+ ✓ No type errors found
29
+ ```
30
+
31
+ Errors:
32
+ ```
33
+ src/components/workspace/AgentWorkspace.tsx:42:5 - error TS2322: Type 'X' is not assignable to type 'Y'.
34
+ ```
35
+
36
+ ## Configuration
37
+
38
+ TypeScript config is in `tsconfig.json`:
39
+
40
+ ```json
41
+ {
42
+ "extends": "astro/tsconfigs/strict",
43
+ "compilerOptions": {
44
+ "baseUrl": ".",
45
+ "paths": {
46
+ "@/*": ["src/*"]
47
+ },
48
+ "jsx": "preserve",
49
+ "jsxImportSource": "react"
50
+ }
51
+ }
52
+ ```
53
+
54
+ ## Common Issues
55
+
56
+ 1. **Missing type imports**: Add `import type { X } from '...'`
57
+ 2. **Path alias not resolving**: Check `tsconfig.json` paths
58
+ 3. **JSX errors**: Ensure `"jsx": "preserve"` is set
59
+
60
+ ## Astro Check (includes TypeScript)
61
+
62
+ ```bash
63
+ bunx astro check
64
+ ```
65
+
66
+ This also validates Astro components and frontmatter.