@oneie/claude 0.6.0 → 0.7.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/agents/w1-recon.md +9 -4
- package/agents/w2-decide.md +51 -28
- package/agents/w3-edit.md +70 -78
- package/agents/w4-verify.md +164 -69
- package/commands/browser.md +98 -35
- package/commands/cc-connect.md +6 -0
- package/commands/chat.md +13 -1
- package/commands/close.md +45 -19
- package/commands/create.md +20 -10
- package/commands/db-sync.md +5 -1
- package/commands/deploy.md +174 -87
- package/commands/do-autonomous.md +31 -20
- package/commands/do-improve.md +4 -4
- package/commands/do-show.md +4 -3
- package/commands/do.md +53 -13
- package/commands/go.md +75 -0
- package/commands/improve.md +4 -2
- package/commands/kill.md +6 -8
- package/commands/notify.md +15 -2
- package/commands/oo-push.md +24 -9
- package/commands/rag.md +6 -0
- package/commands/release.md +46 -25
- package/commands/restart.md +5 -4
- package/commands/see.md +45 -35
- package/commands/skill-create.md +38 -5
- package/commands/sync.md +21 -11
- package/hooks/scripts/auto-continue.sh +70 -0
- package/hooks/scripts/branch-pin.sh +85 -0
- package/hooks/scripts/git-add-guard.sh +16 -5
- package/hooks/scripts/post-edit-check.sh +16 -0
- package/hooks/scripts/session-start.sh +13 -8
- package/hooks/scripts/sync-priority-todo.sh +5 -0
- package/package.json +1 -1
- package/rules/api.md +9 -0
- package/rules/design.md +13 -3
- package/rules/documentation.md +30 -71
- package/rules/engine.md +8 -1
- package/rules/ui.md +5 -1
- package/scripts/__pycache__/do-rank.cpython-313.pyc +0 -0
- package/scripts/browser-check.mjs +44 -103
- package/scripts/cc-events-proof.sh +13 -12
- package/scripts/chrome.mjs +381 -0
- package/scripts/do-analyze.sh +109 -4
- package/scripts/do-auto.sh +350 -43
- package/scripts/do-consumer-sweep.sh +72 -0
- package/scripts/do-derives-check.sh +88 -0
- package/scripts/do-fleet.sh +50 -1
- package/scripts/do-killswitch-audit.py +33 -14
- package/scripts/do-promise-lint.sh +150 -4
- package/scripts/do-promise-settle.sh +131 -9
- package/scripts/do-prove.sh +197 -17
- package/scripts/do-rank.py +606 -20
- package/scripts/do-rubric.py +21 -2
- package/scripts/do-signal.sh +157 -17
- package/scripts/do-smoke.sh +9 -0
- package/scripts/do-substrate-check.sh +49 -0
- package/scripts/do-tasks-wire-check.sh +81 -0
- package/scripts/do-tier.sh +90 -5
- package/scripts/do-ui-gate.sh +332 -0
- package/scripts/do-untracked-gate.sh +231 -0
- package/scripts/do-walk.sh +344 -0
- package/scripts/factory-check.sh +747 -0
- package/scripts/factory-repo.sh +1361 -0
- package/scripts/factory-tasks-check.sh +85 -0
- package/scripts/outcome-pull.ts +279 -0
- package/scripts/promise-manifest.mjs +167 -0
- package/scripts/reconcile-allow.txt +5 -0
- package/scripts/rubric-weights.json +64 -0
- package/scripts/spine-canary.sh +20 -0
- package/scripts/typedb-cluster-status.sh +128 -0
- package/scripts/typedb-env.sh +182 -0
- package/scripts/typedb-flap-recorder.sh +85 -0
- package/scripts/typedb-probes/containment-probe.py +88 -0
- package/scripts/typedb-probes/panic-probe-version.py +92 -0
- package/scripts/typedb-probes/panic-probe.py +77 -0
- package/scripts/typedb-scratch.sh +73 -0
- package/scripts/urls-lint.sh +58 -0
- package/scripts/w4-rubric.ts +96 -12
- package/scripts/wf-check.mjs +75 -0
- package/skills/ai-ui/SKILL.md +1 -1
- package/skills/astro/SKILL.md +177 -132
- package/skills/astro/add-content-collection.md +29 -13
- package/skills/astro/check-build.md +19 -13
- package/skills/astro/create-component.md +36 -9
- package/skills/astro/create-page.md +39 -10
- package/skills/astro/optimize-performance.md +36 -8
- package/skills/cli/SKILL.md +254 -220
- package/skills/dev/SKILL.md +1 -1
- package/skills/directory-autofill/SKILL.md +68 -0
- package/skills/docs/SKILL.md +4 -4
- package/skills/mcp/SKILL.md +186 -156
- package/skills/promise-make/SKILL.md +2 -2
- package/skills/puck/SKILL.md +465 -250
- package/skills/react19/SKILL.md +196 -296
- package/skills/reactflow/SKILL.md +387 -412
- package/skills/sdk/SKILL.md +167 -106
- package/skills/shadcn/SKILL.md +245 -201
- package/skills/signal/SKILL.md +5 -0
- package/skills/sui/SKILL.md +6 -1
- package/skills/tutorial/SKILL.md +15 -0
- package/skills/typedb/SKILL.md +427 -217
- package/skills/typedb/examples/python-patterns.py +11 -4
- package/skills/typedb/examples/query-patterns.tql +8 -3
- package/skills/typedb/examples/schema-patterns.tql +4 -2
- package/skills/typedb/reference/migration-2x-3x.md +19 -1
- package/skills/typedb/reference/python-driver.md +17 -1
- package/skills/voice/SKILL.md +117 -0
- package/skills/writer/SKILL.md +29 -12
- package/templates/template-feature.md +26 -1
- package/templates/template-tests.md +4 -0
- package/templates/template-todo.md +65 -10
|
@@ -1,29 +1,56 @@
|
|
|
1
1
|
# Create React Component
|
|
2
2
|
|
|
3
3
|
**Category:** astro
|
|
4
|
-
**Version:**
|
|
5
|
-
**Used By:**
|
|
4
|
+
**Version:** 2.0.0
|
|
5
|
+
**Used By:** `astro` skill · `/do` W3 edit wave
|
|
6
6
|
|
|
7
7
|
## Purpose
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Add a React 19 island under `one.ie/web/src/components/`, styled with the ONE 6-token
|
|
10
|
+
design system. `.claude/rules/design.md` and `.claude/rules/react.md` auto-load on
|
|
11
|
+
`*.tsx` — this file is the short version.
|
|
10
12
|
|
|
11
13
|
## Example
|
|
12
14
|
|
|
13
|
-
```
|
|
15
|
+
```tsx
|
|
16
|
+
// src/components/pricing/PricingTable.tsx
|
|
17
|
+
import { cn } from "@/lib/utils"
|
|
18
|
+
import { Card } from "@/components/ui/card"
|
|
19
|
+
|
|
14
20
|
interface PricingTableProps {
|
|
15
|
-
tiers: number
|
|
21
|
+
tiers: { name: string; price: number }[]
|
|
22
|
+
className?: string
|
|
16
23
|
}
|
|
17
24
|
|
|
18
|
-
export function PricingTable({ tiers }: PricingTableProps) {
|
|
25
|
+
export function PricingTable({ tiers, className }: PricingTableProps) {
|
|
19
26
|
return (
|
|
20
|
-
<div className="grid gap-6 md:grid-cols-3">
|
|
21
|
-
{
|
|
27
|
+
<div className={cn("grid gap-6 md:grid-cols-3", className)}>
|
|
28
|
+
{tiers.map((tier) => (
|
|
29
|
+
<Card key={tier.name} className="bg-foreground text-font p-6">
|
|
30
|
+
<h3 className="text-lg font-medium">{tier.name}</h3>
|
|
31
|
+
<p className="text-muted">${tier.price}/mo</p>
|
|
32
|
+
</Card>
|
|
33
|
+
))}
|
|
22
34
|
</div>
|
|
23
|
-
)
|
|
35
|
+
)
|
|
24
36
|
}
|
|
25
37
|
```
|
|
26
38
|
|
|
39
|
+
Rules that bite:
|
|
40
|
+
|
|
41
|
+
- **Token classes only — never a hex value.** The 6 editable tokens are `background`,
|
|
42
|
+
`foreground`, `font`, `primary`, `secondary`, `tertiary`; plus the invariants
|
|
43
|
+
(`white`, `black`, `transparent`, `destructive`, `success`) and derived helpers
|
|
44
|
+
(`muted`, `border`, `on-primary`, …). `Layout.astro` sets `--color-*: initial`, so a
|
|
45
|
+
Tailwind default palette class emits **no CSS at all** — it fails silently.
|
|
46
|
+
- Depth: L1 canvas is `background`, L2 chrome (cards, panels, sidebar) is `foreground`.
|
|
47
|
+
- Take a `className?` and merge it through `cn` so callers can position the island.
|
|
48
|
+
- Import shadcn primitives from `@/components/ui/*`; add new ones via the CLI, not by hand.
|
|
49
|
+
- Mount it from the `.astro` page — `client:load` above the fold, `client:visible` below,
|
|
50
|
+
`client:only="react"` when the dependency tree is heavy.
|
|
51
|
+
|
|
27
52
|
## Version History
|
|
28
53
|
|
|
54
|
+
- **2.0.0** (2026-08-02): Added the 6-token constraint, `cn`, the silent-failure trap,
|
|
55
|
+
and the hydration hand-off. The 1.0.0 example used none of the ONE conventions.
|
|
29
56
|
- **1.0.0** (2025-10-18): Initial implementation
|
|
@@ -1,30 +1,59 @@
|
|
|
1
1
|
# Create Astro Page
|
|
2
2
|
|
|
3
3
|
**Category:** astro
|
|
4
|
-
**Version:**
|
|
5
|
-
**Used By:**
|
|
4
|
+
**Version:** 2.0.0
|
|
5
|
+
**Used By:** `astro` skill · `/do` W3 edit wave
|
|
6
6
|
|
|
7
7
|
## Purpose
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Add a route under `one.ie/web/src/pages/`. Decide first: prerendered shell (cheap, no
|
|
10
|
+
worker) or SSR page (reads bindings). `output: 'server'` means SSR is the default —
|
|
11
|
+
opt out explicitly.
|
|
10
12
|
|
|
11
13
|
## Example
|
|
12
14
|
|
|
15
|
+
Prerendered shell — the common case. Modelled on the real `src/pages/activity.astro`:
|
|
16
|
+
|
|
13
17
|
```astro
|
|
14
18
|
---
|
|
15
|
-
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
19
|
+
export const prerender = true
|
|
20
|
+
import Layout from "@/layouts/Layout.astro"
|
|
21
|
+
import { ActivityFeed } from "@/components/activity/ActivityFeed"
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
<Layout title="Activity — ONE" sidebar="none">
|
|
25
|
+
<ActivityFeed client:only="react" />
|
|
26
|
+
</Layout>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
SSR page reading a Cloudflare binding — note the **dynamic** import; a top-level
|
|
30
|
+
`import { env } from "cloudflare:workers"` breaks prerender and is used nowhere in
|
|
31
|
+
this tree:
|
|
18
32
|
|
|
19
|
-
|
|
33
|
+
```astro
|
|
34
|
+
---
|
|
35
|
+
export const prerender = false
|
|
36
|
+
import Layout from "@/layouts/Layout.astro"
|
|
37
|
+
import { Dashboard } from "@/components/Dashboard"
|
|
38
|
+
|
|
39
|
+
const { env } = await import('cloudflare:workers' as string)
|
|
40
|
+
const rows = await env.DB.prepare("SELECT id, name FROM things LIMIT 20").all()
|
|
20
41
|
---
|
|
21
42
|
|
|
22
|
-
<Layout title="
|
|
23
|
-
<
|
|
24
|
-
<PricingTable tiers={3} />
|
|
43
|
+
<Layout title="Dashboard — ONE" sidebar="full">
|
|
44
|
+
<Dashboard client:load rows={rows.results} />
|
|
25
45
|
</Layout>
|
|
26
46
|
```
|
|
27
47
|
|
|
48
|
+
`Layout` requires `title`; useful optional props include `description`, `sidebar`
|
|
49
|
+
(`none | mini | full | rail`) and the `chat*` family. Read `src/layouts/Layout.astro`
|
|
50
|
+
for the full `Props` interface before inventing one.
|
|
51
|
+
|
|
52
|
+
Hydration: above-fold → `client:load`, below-fold → `client:visible`, heavy deps →
|
|
53
|
+
`client:only="react"`.
|
|
54
|
+
|
|
28
55
|
## Version History
|
|
29
56
|
|
|
57
|
+
- **2.0.0** (2026-08-02): Replaced the Convex example (Convex is not a dependency of
|
|
58
|
+
this repo) with the two real page shapes and the dynamic `cloudflare:workers` import.
|
|
30
59
|
- **1.0.0** (2025-10-18): Initial implementation
|
|
@@ -1,21 +1,49 @@
|
|
|
1
1
|
# Optimize Astro Performance
|
|
2
2
|
|
|
3
3
|
**Category:** astro
|
|
4
|
-
**Version:**
|
|
5
|
-
**Used By:**
|
|
4
|
+
**Version:** 2.0.0
|
|
5
|
+
**Used By:** `astro` skill · `/do` W4 verify wave
|
|
6
6
|
|
|
7
7
|
## Purpose
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Cut worker bundle size and page latency in `one.ie/web`. Two separate budgets: the
|
|
10
|
+
**upload** (gzip, gated at deploy) and the **request** (TTFB, measured in
|
|
11
|
+
`text/speed.md`).
|
|
10
12
|
|
|
11
13
|
## Recommendations
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
|
|
15
|
+
Bundle — the 5 LOCKED rules, authority `.claude/commands/deploy.md § Bundle Size Rules`:
|
|
16
|
+
|
|
17
|
+
- `markdown: { syntaxHighlight: false }` — keeps ~5.8 MiB of Shiki grammars out.
|
|
18
|
+
- `vite.ssr.external` for heavy client-only packages. **`astro.config.mjs` is the
|
|
19
|
+
authority for that list** — never trim it to match a snippet in a doc.
|
|
20
|
+
- `export const prerender = true` + `client:only="react"` on shell pages, so the worker
|
|
21
|
+
ships no React for them.
|
|
22
|
+
- `build: { inlineStylesheets: 'auto' }` — **never `'always'`** (~8 MiB at 100+ routes).
|
|
23
|
+
- `react-dom/server` → `react-dom/server.edge` alias in production.
|
|
24
|
+
|
|
25
|
+
Runtime:
|
|
26
|
+
|
|
27
|
+
- Pick the cheapest hydration directive that works: `client:visible` below the fold,
|
|
28
|
+
`client:only="react"` for heavy trees, `client:load` only above the fold.
|
|
29
|
+
- Smart Placement is on (`[placement] mode = "smart"` in `wrangler.toml`) — the isolate
|
|
30
|
+
runs near D1/R2/DO instead of at the visitor's PoP. Don't remove it; it was dropped
|
|
31
|
+
once in a config rewrite and cost ~1s of pre-flight per chat turn.
|
|
32
|
+
- `optimizeDeps.include` / `ssr.optimizeDeps.include` in `astro.config.mjs` pre-bundle
|
|
33
|
+
React and friends at boot. Mid-session re-optimisation produces two `?v=` hashes for
|
|
34
|
+
react-dom and breaks hydration — add new hot deps to the list rather than debugging
|
|
35
|
+
the symptom.
|
|
36
|
+
- Static assets come from the `[assets]` binding and don't count against request quota.
|
|
37
|
+
|
|
38
|
+
Measure, don't guess: `text/speed.md` carries the real table (routing <0.005ms, KV read
|
|
39
|
+
<10ms, `ask()` 50–200ms, chat TTFB p50 ~97ms, first SSE token ~500ms). Run
|
|
40
|
+
`.claude/commands/deploy.md § Bundle Size Diagnosis` before optimising a bundle.
|
|
41
|
+
|
|
42
|
+
**Not applicable here:** `@astrojs/image` — deprecated and not a dependency of this
|
|
43
|
+
repo. Astro's built-in `astro:assets` replaces it.
|
|
18
44
|
|
|
19
45
|
## Version History
|
|
20
46
|
|
|
47
|
+
- **2.0.0** (2026-08-02): Replaced generic advice with the 5 LOCKED bundle rules, Smart
|
|
48
|
+
Placement, the optimizeDeps trap, and the real speed table; dropped `@astrojs/image`.
|
|
21
49
|
- **1.0.0** (2025-10-18): Initial implementation
|