@lifeaitools/rdc-skills 0.35.6 → 0.35.8
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/.claude-plugin/plugin.json +180 -44
- package/.github/workflows/self-test.yml +34 -34
- package/CHANGELOG.md +393 -393
- package/MANIFEST.md +224 -224
- package/README.md +10 -3
- package/clauth-plugin.json +1 -1
- package/commands/analyze-tests.md +1 -4
- package/commands/build.md +1 -2
- package/commands/check-clean-code.md +1 -3
- package/commands/check-packages.md +1 -3
- package/commands/collab.md +1 -2
- package/commands/compare-compliance.md +1 -4
- package/commands/deploy.md +1 -2
- package/commands/design.md +1 -2
- package/commands/edit.md +1 -2
- package/commands/fixit.md +1 -2
- package/commands/flow.md +1 -2
- package/commands/full-analysis.md +1 -7
- package/commands/get-refactoring-plan.md +1 -5
- package/commands/handoff.md +1 -2
- package/commands/help.md +1 -3
- package/commands/mode.md +1 -2
- package/commands/overnight.md +1 -2
- package/commands/plan.md +1 -2
- package/commands/preplan.md +1 -2
- package/commands/quick-check.md +1 -4
- package/commands/recover.md +1 -2
- package/commands/release.md +2 -2
- package/commands/review-arch.md +1 -4
- package/commands/review.md +1 -5
- package/commands/status.md +1 -2
- package/commands/suggest-patterns.md +1 -4
- package/commands/validate-solid.md +1 -3
- package/guides/agents/backend.md +102 -102
- package/guides/agents/content.md +94 -94
- package/guides/agents/cs2.md +56 -56
- package/guides/agents/data.md +86 -86
- package/guides/agents/design.md +77 -77
- package/guides/agents/frontend.md +91 -91
- package/guides/agents/infrastructure.md +81 -81
- package/guides/agents/setup.md +272 -272
- package/guides/agents/verify.md +119 -119
- package/guides/agents/viz.md +106 -106
- package/guides/orchestration-epic.md +17 -17
- package/hooks/require-work-item-on-commit.js +69 -4
- package/package.json +1 -1
- package/scripts/gen-skill-descriptions.mjs +190 -0
- package/scripts/self-test.mjs +1459 -1459
- package/skills/architecture-reviewer/SKILL.md +1 -11
- package/skills/behavior-audit/SKILL.md +1 -1
- package/skills/behavior-audit/agents/openai.yaml +4 -4
- package/skills/brochure/SKILL.md +1 -1
- package/skills/brochurify/SKILL.md +1 -1
- package/skills/build/SKILL.md +1 -1
- package/skills/channel-formatter/SKILL.md +1 -1
- package/skills/clean-code-analyzer/SKILL.md +1 -6
- package/skills/co-develop/SKILL.md +1 -1
- package/skills/collab/SKILL.md +1 -1
- package/skills/convert/SKILL.md +1 -1
- package/skills/deploy/SKILL.md +1 -1
- package/skills/design/SKILL.md +1 -1
- package/skills/edit/SKILL.md +1 -1
- package/skills/env/SKILL.md +1 -1
- package/skills/extract-verifier-rules/SKILL.md +1 -1
- package/skills/fixit/SKILL.md +1 -1
- package/skills/fs-mcp/SKILL.md +1 -1
- package/skills/handoff/SKILL.md +1 -1
- package/skills/help/SKILL.md +1 -1
- package/skills/housekeeping/SKILL.md +1 -1
- package/skills/lifeai-brochure-author/SKILL.md +1 -1
- package/skills/new-model/SKILL.md +1 -7
- package/skills/onramp/SKILL.md +1 -1
- package/skills/overnight/SKILL.md +1 -1
- package/skills/package-design/SKILL.md +1 -4
- package/skills/pattern-advisor/SKILL.md +1 -6
- package/skills/pattern-refactoring-guide/SKILL.md +1 -4
- package/skills/plan/SKILL.md +1 -1
- package/skills/preplan/SKILL.md +1 -1
- package/skills/prototype/SKILL.md +1 -1
- package/skills/refactor/SKILL.md +1 -1
- package/skills/regen-media/SKILL.md +1 -1
- package/skills/release/SKILL.md +1 -1
- package/skills/report/SKILL.md +1 -1
- package/skills/review/SKILL.md +1 -1
- package/skills/rpms-filemap/SKILL.md +1 -1
- package/skills/self-test/SKILL.md +1 -1
- package/skills/solid-validator/SKILL.md +1 -6
- package/skills/status/SKILL.md +1 -1
- package/skills/terminal-config/SKILL.md +1 -1
- package/skills/testing-strategy/SKILL.md +1 -6
- package/skills/tests/onramp.test.json +101 -101
- package/skills/tests/rdc-env.test.json +12 -12
- package/skills/tests/rdc-new-model.test.json +12 -12
- package/skills/tests/rdc-refactor.test.json +29 -29
- package/skills/tests/rdc-regen-media.test.json +29 -29
- package/skills/watch/SKILL.md +1 -1
- package/skills/workitems/SKILL.md +1 -1
- package/tests/clauth-plugin-postinstall.test.mjs +14 -1
- package/tests/help-surface.test.mjs +2 -2
- package/tests/require-work-item-on-commit.test.mjs +54 -0
- package/commands/open.md +0 -84
- package/commands/prototype.md +0 -145
- package/commands/report.md +0 -99
- package/commands/self-test.md +0 -113
- package/commands/watch.md +0 -98
- package/commands/workitems.md +0 -149
- package/ecosystem.local.config.cjs +0 -18
package/commands/handoff.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: handoff
|
|
3
|
-
description:
|
|
4
|
-
Usage `rdc:handoff <topic>` — structured handoff from planning session to CLI agents. Produces plan doc in .rdc/plans/, work items in DB, prototype registry entry if applicable. Use when plan/prototype is finalized and ready for implementation.
|
|
3
|
+
description: rdc:handoff () - [--from-prototype] — turn a plan or prototype into work items and artifacts
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
> **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
|
package/commands/help.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: help
|
|
3
|
-
description:
|
|
4
|
-
Usage `rdc:help` or `rdc` — manifest-driven menu of all MCP skills with
|
|
5
|
-
argument syntax, requirements, decision hints, and direct MCP/curl access.
|
|
3
|
+
description: rdc:help () — list all MCP skills with usage, requirements and slash form
|
|
6
4
|
---
|
|
7
5
|
|
|
8
6
|
> **Output contract:** Checklist/table output only. No raw MCP/JSON/log dumps.
|
package/commands/mode.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mode
|
|
3
|
-
description:
|
|
4
|
-
Usage `rdc:mode [status|hotfix "<reason>" [minutes]|normal]` — show or set the operating mode. HotFix relaxes ceremony gates for a bounded window; it never relaxes a safety guard.
|
|
3
|
+
description: rdc:mode [status|hotfix "<reason>" [minutes]|normal] — show or set the operating mode
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
> **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
|
package/commands/overnight.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: overnight
|
|
3
|
-
description:
|
|
4
|
-
Usage `rdc:overnight [epic-id|label=X]` — unattended overnight supervisor, chains preplan → plan → build → review → report across all high-priority epics in --unattended mode. Use for "run overnight", "build while I sleep".
|
|
3
|
+
description: rdc:overnight ([scope]) — drain the work queue unattended, end to end
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
> **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
|
package/commands/plan.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: plan
|
|
3
|
-
description:
|
|
4
|
-
Usage `rdc:plan <topic> [--unattended]` — architecture doc with design decisions, tradeoffs, work packages. Creates Supabase epics/tasks. Use after rdc:preplan or when given clear architectural direction.
|
|
3
|
+
description: rdc:plan (topic) — produce architecture, decisions and an epic with tasks
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
> **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
|
package/commands/preplan.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: preplan
|
|
3
|
-
description:
|
|
4
|
-
Usage `rdc:preplan <topic> [--unattended]` — research best practices, analyze codebase, compare approaches, surface unknowns before committing to a plan. Produces a research doc. No decisions, no code.
|
|
3
|
+
description: rdc:preplan (topic) — research the unknowns before committing to an architecture
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
> **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
|
package/commands/quick-check.md
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: quick-check
|
|
3
|
-
description:
|
|
4
|
-
Usage `rdc:quick-check <path>` — fast mechanical-only pass: solid-validator
|
|
5
|
-
score + boundary check. No dispatched judgment agents. For a tight
|
|
6
|
-
iteration loop, not a merge gate.
|
|
3
|
+
description: rdc:quick-check <path> — fast mechanical pass, SOLID score and boundary check
|
|
7
4
|
---
|
|
8
5
|
|
|
9
6
|
# quick-check
|
package/commands/recover.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: recover
|
|
3
|
-
description:
|
|
4
|
-
Usage `rdc:recover [list|start]` — deterministic post-crash recovery: detect, repair (CodeFlow/PM2 only), verify, then find and resume abandoned Claude/Codex worktree-lane sessions.
|
|
3
|
+
description: rdc:recover [list|start] — detect, repair and resume after a crash
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
> **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
|
package/commands/release.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
description: rdc:release (repo, [version]) - [--patch, --minor, --major, --dry-run] — bump, tag, publish and verify a package
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# rdc:release — Generic Release
|
package/commands/review-arch.md
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: review-arch
|
|
3
|
-
description:
|
|
4
|
-
Usage `rdc:review-arch <path> [--diff <ref>]` — layering/dependency-
|
|
5
|
-
direction review, mechanical + judgment (FIT corner). See
|
|
6
|
-
skills/architecture-reviewer.
|
|
3
|
+
description: rdc:review-arch <path> [--diff <ref>] — review layering and dependency direction
|
|
7
4
|
---
|
|
8
5
|
|
|
9
6
|
# review-arch
|
package/commands/review.md
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: review
|
|
3
|
-
description:
|
|
4
|
-
Usage `rdc:review [--unattended]` — post-build quality gate: tsc, tests,
|
|
5
|
-
stale docs, export conflicts, a mandatory pr-review-toolkit:code-reviewer
|
|
6
|
-
pass, and the form/fit/function gate (solid-validator + architecture-
|
|
7
|
-
reviewer) across modified packages. See skills/review.
|
|
3
|
+
description: rdc:review () - [--unattended] — post-build gate over tsc, tests, docs and code review
|
|
8
4
|
---
|
|
9
5
|
|
|
10
6
|
# review
|
package/commands/status.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: status
|
|
3
|
-
description:
|
|
4
|
-
Usage `rdc:status` — open epics, work items by project, Coolify health, blockers, next recommended action. Read-only situational awareness.
|
|
3
|
+
description: rdc:status () — snapshot open epics, health, blockers and next action
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
> **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: suggest-patterns
|
|
3
|
-
description:
|
|
4
|
-
Usage `rdc:suggest-patterns <path>` — design pattern suggestions,
|
|
5
|
-
advisory only, "no pattern needed" is a valid verdict. See
|
|
6
|
-
skills/pattern-advisor.
|
|
3
|
+
description: rdc:suggest-patterns <path> — suggest design patterns; "none needed" is a valid verdict
|
|
7
4
|
---
|
|
8
5
|
|
|
9
6
|
# suggest-patterns
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: validate-solid
|
|
3
|
-
description:
|
|
4
|
-
Usage `rdc:validate-solid <path> [--diff <ref>]` — deterministic SOLID +
|
|
5
|
-
Clean Architecture scoring (FORM corner). See skills/solid-validator.
|
|
3
|
+
description: rdc:validate-solid <path> [--diff <ref>] — score SOLID and Clean Architecture deterministically
|
|
6
4
|
---
|
|
7
5
|
|
|
8
6
|
# validate-solid
|
package/guides/agents/backend.md
CHANGED
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
> **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
|
|
2
|
-
> Checklist-only output. No tool-call narration. No raw MCP/JSON/log dumps.
|
|
3
|
-
> One checklist upfront, updated in place, shown again at end with a 1-line verdict.
|
|
4
|
-
|
|
5
|
-
> If dispatching subagents or running as a subagent: read `{PROJECT_ROOT}/.rdc/guides/agent-bootstrap.md` first (fallback: `{PROJECT_ROOT}/.rdc/guides/agent-bootstrap.md`).
|
|
6
|
-
|
|
7
|
-
> **Sandbox contract:** This guide honors `RDC_TEST=1` per `guides/agent-bootstrap.md` § RDC_TEST Sandbox Contract. Destructive external calls short-circuit under the flag.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
# rdc:backend — Backend Agent
|
|
11
|
-
|
|
12
|
-
## Mandatory First Step
|
|
13
|
-
|
|
14
|
-
Read the guide before ANY code:
|
|
15
|
-
```
|
|
16
|
-
{PROJECT_ROOT}/.rdc/guides/backend.md
|
|
17
|
-
(fallback: {PROJECT_ROOT}/.rdc/guides/backend.md)
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Database Client — One Pattern Per Context
|
|
21
|
-
|
|
22
|
-
```ts
|
|
23
|
-
// Server component / API route
|
|
24
|
-
import { createServerClient } from "@regen/supabase";
|
|
25
|
-
const supabase = await createServerClient();
|
|
26
|
-
|
|
27
|
-
// Client component
|
|
28
|
-
import { createBrowserClient } from "@regen/supabase";
|
|
29
|
-
const supabase = createBrowserClient();
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Non-public schemas:
|
|
33
|
-
```ts
|
|
34
|
-
const { data } = await supabase.schema("custom").from("table_name").select("*");
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## Credentials — Daemon First
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
curl -s http://127.0.0.1:52437/get/<service>
|
|
41
|
-
```
|
|
42
|
-
- Never hardcode credentials
|
|
43
|
-
- Never print keys to stdout
|
|
44
|
-
- If daemon is down: report BLOCKED — do not work around it
|
|
45
|
-
|
|
46
|
-
## Work Items — RPC Only
|
|
47
|
-
|
|
48
|
-
```sql
|
|
49
|
-
-- Read epics
|
|
50
|
-
SELECT get_open_epics();
|
|
51
|
-
|
|
52
|
-
-- Create
|
|
53
|
-
SELECT insert_work_item(
|
|
54
|
-
p_title := 'Task title',
|
|
55
|
-
p_priority := 'high',
|
|
56
|
-
p_parent_id := '<epic-uuid>'::uuid,
|
|
57
|
-
p_source := 'agent'
|
|
58
|
-
);
|
|
59
|
-
|
|
1
|
+
> **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
|
|
2
|
+
> Checklist-only output. No tool-call narration. No raw MCP/JSON/log dumps.
|
|
3
|
+
> One checklist upfront, updated in place, shown again at end with a 1-line verdict.
|
|
4
|
+
|
|
5
|
+
> If dispatching subagents or running as a subagent: read `{PROJECT_ROOT}/.rdc/guides/agent-bootstrap.md` first (fallback: `{PROJECT_ROOT}/.rdc/guides/agent-bootstrap.md`).
|
|
6
|
+
|
|
7
|
+
> **Sandbox contract:** This guide honors `RDC_TEST=1` per `guides/agent-bootstrap.md` § RDC_TEST Sandbox Contract. Destructive external calls short-circuit under the flag.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# rdc:backend — Backend Agent
|
|
11
|
+
|
|
12
|
+
## Mandatory First Step
|
|
13
|
+
|
|
14
|
+
Read the guide before ANY code:
|
|
15
|
+
```
|
|
16
|
+
{PROJECT_ROOT}/.rdc/guides/backend.md
|
|
17
|
+
(fallback: {PROJECT_ROOT}/.rdc/guides/backend.md)
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Database Client — One Pattern Per Context
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
// Server component / API route
|
|
24
|
+
import { createServerClient } from "@regen/supabase";
|
|
25
|
+
const supabase = await createServerClient();
|
|
26
|
+
|
|
27
|
+
// Client component
|
|
28
|
+
import { createBrowserClient } from "@regen/supabase";
|
|
29
|
+
const supabase = createBrowserClient();
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Non-public schemas:
|
|
33
|
+
```ts
|
|
34
|
+
const { data } = await supabase.schema("custom").from("table_name").select("*");
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Credentials — Daemon First
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
curl -s http://127.0.0.1:52437/get/<service>
|
|
41
|
+
```
|
|
42
|
+
- Never hardcode credentials
|
|
43
|
+
- Never print keys to stdout
|
|
44
|
+
- If daemon is down: report BLOCKED — do not work around it
|
|
45
|
+
|
|
46
|
+
## Work Items — RPC Only
|
|
47
|
+
|
|
48
|
+
```sql
|
|
49
|
+
-- Read epics
|
|
50
|
+
SELECT get_open_epics();
|
|
51
|
+
|
|
52
|
+
-- Create
|
|
53
|
+
SELECT insert_work_item(
|
|
54
|
+
p_title := 'Task title',
|
|
55
|
+
p_priority := 'high',
|
|
56
|
+
p_parent_id := '<epic-uuid>'::uuid,
|
|
57
|
+
p_source := 'agent'
|
|
58
|
+
);
|
|
59
|
+
|
|
60
60
|
-- Implementation agents submit report + CodeFlow post, then move to review
|
|
61
61
|
SELECT update_work_item_status('<uuid>'::uuid, 'review', '["Implementation complete; ready for validator"]'::jsonb, '<agent-session-id>', 'agent');
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
**NEVER write raw INSERT/UPDATE against work items.**
|
|
65
|
-
|
|
66
|
-
## API Route Pattern
|
|
67
|
-
|
|
68
|
-
```ts
|
|
69
|
-
import { createServerClient } from "@regen/supabase";
|
|
70
|
-
import { NextResponse } from "next/server";
|
|
71
|
-
|
|
72
|
-
export async function GET() {
|
|
73
|
-
const supabase = await createServerClient();
|
|
74
|
-
const { data, error } = await supabase.from("table").select("*");
|
|
75
|
-
if (error) return NextResponse.json({ error: error.message }, { status: 500 });
|
|
76
|
-
return NextResponse.json(data);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export async function POST(request: Request) {
|
|
80
|
-
const body = await request.json();
|
|
81
|
-
const supabase = await createServerClient();
|
|
82
|
-
const { data, error } = await supabase.from("table").insert(body).select().single();
|
|
83
|
-
if (error) return NextResponse.json({ error: error.message }, { status: 400 });
|
|
84
|
-
return NextResponse.json(data, { status: 201 });
|
|
85
|
-
}
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
## Auth
|
|
89
|
-
|
|
90
|
-
Use the auth helpers from your project's auth package for protected apps.
|
|
91
|
-
|
|
92
|
-
## Schema-Driven Forms
|
|
93
|
-
|
|
94
|
-
When working with schema-driven forms (common in dynamic CRUD), never hardcode columns.
|
|
95
|
-
Use the schema table to drive form rendering instead.
|
|
96
|
-
|
|
97
|
-
## Safety Rules
|
|
98
|
-
|
|
99
|
-
- Branch: development branch — auto-commit after logical blocks
|
|
100
|
-
- NEVER run `pnpm build`
|
|
101
|
-
- NEVER overlap with other agents on the same files
|
|
102
|
-
- Update work items in real time — not batch at end
|
|
103
|
-
- Push after each logical block *(skip if `$RDC_TEST=1` — echo `[RDC_TEST] skipping git push` instead)*
|
|
104
|
-
- Write tests FIRST — red → implement → green
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
**NEVER write raw INSERT/UPDATE against work items.**
|
|
65
|
+
|
|
66
|
+
## API Route Pattern
|
|
67
|
+
|
|
68
|
+
```ts
|
|
69
|
+
import { createServerClient } from "@regen/supabase";
|
|
70
|
+
import { NextResponse } from "next/server";
|
|
71
|
+
|
|
72
|
+
export async function GET() {
|
|
73
|
+
const supabase = await createServerClient();
|
|
74
|
+
const { data, error } = await supabase.from("table").select("*");
|
|
75
|
+
if (error) return NextResponse.json({ error: error.message }, { status: 500 });
|
|
76
|
+
return NextResponse.json(data);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export async function POST(request: Request) {
|
|
80
|
+
const body = await request.json();
|
|
81
|
+
const supabase = await createServerClient();
|
|
82
|
+
const { data, error } = await supabase.from("table").insert(body).select().single();
|
|
83
|
+
if (error) return NextResponse.json({ error: error.message }, { status: 400 });
|
|
84
|
+
return NextResponse.json(data, { status: 201 });
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Auth
|
|
89
|
+
|
|
90
|
+
Use the auth helpers from your project's auth package for protected apps.
|
|
91
|
+
|
|
92
|
+
## Schema-Driven Forms
|
|
93
|
+
|
|
94
|
+
When working with schema-driven forms (common in dynamic CRUD), never hardcode columns.
|
|
95
|
+
Use the schema table to drive form rendering instead.
|
|
96
|
+
|
|
97
|
+
## Safety Rules
|
|
98
|
+
|
|
99
|
+
- Branch: development branch — auto-commit after logical blocks
|
|
100
|
+
- NEVER run `pnpm build`
|
|
101
|
+
- NEVER overlap with other agents on the same files
|
|
102
|
+
- Update work items in real time — not batch at end
|
|
103
|
+
- Push after each logical block *(skip if `$RDC_TEST=1` — echo `[RDC_TEST] skipping git push` instead)*
|
|
104
|
+
- Write tests FIRST — red → implement → green
|
package/guides/agents/content.md
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
> **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
|
|
2
|
-
> Checklist-only output. No tool-call narration. No raw MCP/JSON/log dumps.
|
|
3
|
-
> One checklist upfront, updated in place, shown again at end with a 1-line verdict.
|
|
4
|
-
|
|
5
|
-
> If dispatching subagents or running as a subagent: read `{PROJECT_ROOT}/.rdc/guides/agent-bootstrap.md` first (fallback: `{PROJECT_ROOT}/.rdc/guides/agent-bootstrap.md`).
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
# rdc:content — Content Agent
|
|
9
|
-
|
|
10
|
-
## Mandatory First Step
|
|
11
|
-
|
|
12
|
-
Read the guide before writing ANY copy:
|
|
13
|
-
```
|
|
14
|
-
{PROJECT_ROOT}/.rdc/guides/content.md
|
|
15
|
-
(fallback: {PROJECT_ROOT}/.rdc/guides/content.md)
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Core Message Development
|
|
19
|
-
|
|
20
|
-
Before writing any copy:
|
|
21
|
-
|
|
22
|
-
1. Define the lead word or core concept (e.g., "Stewardship", "Community", "Trust")
|
|
23
|
-
2. State the core message in 1-2 sentences
|
|
24
|
-
3. List language to always use
|
|
25
|
-
4. List language to never use
|
|
26
|
-
5. Define target audiences and key messages for each
|
|
27
|
-
|
|
28
|
-
## Language Rules Pattern
|
|
29
|
-
|
|
30
|
-
### Always Use
|
|
31
|
-
- Core concept words (replace vague synonyms)
|
|
32
|
-
- Specific, measurable terms
|
|
33
|
-
- Active voice where possible
|
|
34
|
-
- Real data, not approximations
|
|
35
|
-
|
|
36
|
-
### Never Use
|
|
37
|
-
| Avoid | Use Instead |
|
|
38
|
-
|-------|-------------|
|
|
39
|
-
| Vague concept | Specific term |
|
|
40
|
-
| Passive construction | Active voice |
|
|
41
|
-
| Clichéd term | Domain-specific language |
|
|
42
|
-
|
|
43
|
-
## Regulatory Context
|
|
44
|
-
|
|
45
|
-
Verify what regulations apply to your content before writing:
|
|
46
|
-
- Never guarantee results or returns
|
|
47
|
-
- Use ranges and targets, not promises
|
|
48
|
-
- Include necessary disclaimers
|
|
49
|
-
- Maintain transparency about assumptions
|
|
50
|
-
|
|
51
|
-
## Audience Segments
|
|
52
|
-
|
|
53
|
-
Define key audiences and their primary concerns:
|
|
54
|
-
- What matters to this group?
|
|
55
|
-
- What is their current perception?
|
|
56
|
-
- What action do you want them to take?
|
|
57
|
-
|
|
58
|
-
## Key Facts
|
|
59
|
-
|
|
60
|
-
Maintain a source-of-truth list:
|
|
61
|
-
- Financial figures
|
|
62
|
-
- Timelines
|
|
63
|
-
- Commitments
|
|
64
|
-
- Metrics
|
|
65
|
-
|
|
66
|
-
Never invent these — always verify.
|
|
67
|
-
|
|
68
|
-
## Tone Template
|
|
69
|
-
|
|
70
|
-
- Authority level: high/medium/low
|
|
71
|
-
- Formality: formal/casual
|
|
72
|
-
- Technical depth: detailed/accessible
|
|
73
|
-
- Emotion: neutral/passionate
|
|
74
|
-
- Speed: short/long form
|
|
75
|
-
|
|
76
|
-
## Content Queue (save to database)
|
|
77
|
-
|
|
78
|
-
```sql
|
|
79
|
-
INSERT INTO content_queue (title, content_type, status, draft_body)
|
|
80
|
-
VALUES (
|
|
81
|
-
'Email subject or article title',
|
|
82
|
-
'email_sequence', -- or: social_post, article, newsletter, landing_copy
|
|
83
|
-
'draft',
|
|
84
|
-
'...'
|
|
85
|
-
);
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
## Safety Rules
|
|
89
|
-
|
|
90
|
-
- Never invent data — verify all figures
|
|
91
|
-
- Never make legal claims — use "may be" language
|
|
92
|
-
- Use prohibited words list when provided
|
|
93
|
-
- Always include disclaimers for regulated content
|
|
94
|
-
- Branch: development branch — commit content files to repo
|
|
1
|
+
> **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
|
|
2
|
+
> Checklist-only output. No tool-call narration. No raw MCP/JSON/log dumps.
|
|
3
|
+
> One checklist upfront, updated in place, shown again at end with a 1-line verdict.
|
|
4
|
+
|
|
5
|
+
> If dispatching subagents or running as a subagent: read `{PROJECT_ROOT}/.rdc/guides/agent-bootstrap.md` first (fallback: `{PROJECT_ROOT}/.rdc/guides/agent-bootstrap.md`).
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# rdc:content — Content Agent
|
|
9
|
+
|
|
10
|
+
## Mandatory First Step
|
|
11
|
+
|
|
12
|
+
Read the guide before writing ANY copy:
|
|
13
|
+
```
|
|
14
|
+
{PROJECT_ROOT}/.rdc/guides/content.md
|
|
15
|
+
(fallback: {PROJECT_ROOT}/.rdc/guides/content.md)
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Core Message Development
|
|
19
|
+
|
|
20
|
+
Before writing any copy:
|
|
21
|
+
|
|
22
|
+
1. Define the lead word or core concept (e.g., "Stewardship", "Community", "Trust")
|
|
23
|
+
2. State the core message in 1-2 sentences
|
|
24
|
+
3. List language to always use
|
|
25
|
+
4. List language to never use
|
|
26
|
+
5. Define target audiences and key messages for each
|
|
27
|
+
|
|
28
|
+
## Language Rules Pattern
|
|
29
|
+
|
|
30
|
+
### Always Use
|
|
31
|
+
- Core concept words (replace vague synonyms)
|
|
32
|
+
- Specific, measurable terms
|
|
33
|
+
- Active voice where possible
|
|
34
|
+
- Real data, not approximations
|
|
35
|
+
|
|
36
|
+
### Never Use
|
|
37
|
+
| Avoid | Use Instead |
|
|
38
|
+
|-------|-------------|
|
|
39
|
+
| Vague concept | Specific term |
|
|
40
|
+
| Passive construction | Active voice |
|
|
41
|
+
| Clichéd term | Domain-specific language |
|
|
42
|
+
|
|
43
|
+
## Regulatory Context
|
|
44
|
+
|
|
45
|
+
Verify what regulations apply to your content before writing:
|
|
46
|
+
- Never guarantee results or returns
|
|
47
|
+
- Use ranges and targets, not promises
|
|
48
|
+
- Include necessary disclaimers
|
|
49
|
+
- Maintain transparency about assumptions
|
|
50
|
+
|
|
51
|
+
## Audience Segments
|
|
52
|
+
|
|
53
|
+
Define key audiences and their primary concerns:
|
|
54
|
+
- What matters to this group?
|
|
55
|
+
- What is their current perception?
|
|
56
|
+
- What action do you want them to take?
|
|
57
|
+
|
|
58
|
+
## Key Facts
|
|
59
|
+
|
|
60
|
+
Maintain a source-of-truth list:
|
|
61
|
+
- Financial figures
|
|
62
|
+
- Timelines
|
|
63
|
+
- Commitments
|
|
64
|
+
- Metrics
|
|
65
|
+
|
|
66
|
+
Never invent these — always verify.
|
|
67
|
+
|
|
68
|
+
## Tone Template
|
|
69
|
+
|
|
70
|
+
- Authority level: high/medium/low
|
|
71
|
+
- Formality: formal/casual
|
|
72
|
+
- Technical depth: detailed/accessible
|
|
73
|
+
- Emotion: neutral/passionate
|
|
74
|
+
- Speed: short/long form
|
|
75
|
+
|
|
76
|
+
## Content Queue (save to database)
|
|
77
|
+
|
|
78
|
+
```sql
|
|
79
|
+
INSERT INTO content_queue (title, content_type, status, draft_body)
|
|
80
|
+
VALUES (
|
|
81
|
+
'Email subject or article title',
|
|
82
|
+
'email_sequence', -- or: social_post, article, newsletter, landing_copy
|
|
83
|
+
'draft',
|
|
84
|
+
'...'
|
|
85
|
+
);
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Safety Rules
|
|
89
|
+
|
|
90
|
+
- Never invent data — verify all figures
|
|
91
|
+
- Never make legal claims — use "may be" language
|
|
92
|
+
- Use prohibited words list when provided
|
|
93
|
+
- Always include disclaimers for regulated content
|
|
94
|
+
- Branch: development branch — commit content files to repo
|
package/guides/agents/cs2.md
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
> **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
|
|
2
|
-
> Checklist-only output. No tool-call narration. No raw MCP/JSON/log dumps.
|
|
3
|
-
> One checklist upfront, updated in place, shown again at end with a 1-line verdict.
|
|
4
|
-
|
|
5
|
-
> If dispatching subagents or running as a subagent: read `{PROJECT_ROOT}/.rdc/guides/agent-bootstrap.md` first (fallback: `{PROJECT_ROOT}/.rdc/guides/agent-bootstrap.md`).
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
# rdc:cs2 — CS 2.0 Agent
|
|
9
|
-
|
|
10
|
-
## Mandatory First Step
|
|
11
|
-
|
|
12
|
-
Read the guide before ANY code:
|
|
13
|
-
```
|
|
14
|
-
{PROJECT_ROOT}/.rdc/guides/cs2.md
|
|
15
|
-
(fallback: {PROJECT_ROOT}/.rdc/guides/cs2.md)
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
Also read the master spec:
|
|
19
|
-
```
|
|
20
|
-
{PROJECT_ROOT}/docs/systems/cs2/cs2-master-spec.md
|
|
21
|
-
{PROJECT_ROOT}/docs/systems/cs2/package-map.md
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## The Paradigm Check
|
|
25
|
-
|
|
26
|
-
**Before writing ANY code, ask:**
|
|
27
|
-
> "Is this building a new computational primitive, or am I wiring a UI to a database?"
|
|
28
|
-
|
|
29
|
-
If the latter — STOP. That is CS 1.0 thinking. Route to `rdc:frontend` + `rdc:backend`.
|
|
30
|
-
|
|
31
|
-
## Package Dependency Graph
|
|
32
|
-
|
|
33
|
-
Respect this — never create circular deps:
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
Layer 0 (roots): cs2, core-primitive-1, core-primitive-2
|
|
37
|
-
Layer 1: system-a(core-primitive-1), system-b(core-primitive-2)
|
|
38
|
-
Layer 2: advanced-system(system-a, system-b)
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
Apps depend on `@regen/` packages. **Apps never depend on each other.**
|
|
42
|
-
|
|
43
|
-
## TypeScript — No `any`, No Escape Hatches
|
|
44
|
-
|
|
45
|
-
CS 2.0 packages must be fully typed. If you hit a type boundary you cannot express,
|
|
46
|
-
that is a signal the abstraction is wrong — fix the model, not the types.
|
|
47
|
-
|
|
48
|
-
## Safety Rules
|
|
49
|
-
|
|
50
|
-
- Branch: development branch — auto-commit per package
|
|
51
|
-
- NEVER run `pnpm build` — use `npx tsc --noEmit --project packages/<n>/tsconfig.json`
|
|
52
|
-
- Respect the dependency graph — no circular deps
|
|
53
|
-
- Never self-modify governance weights from executing layers
|
|
54
|
-
- All immutable proofs are permanent — never update committed data
|
|
55
|
-
- NEVER overlap agents on the same package
|
|
56
|
-
- Write tests FIRST — red → implement → green
|
|
1
|
+
> **⚠️ OUTPUT CONTRACT (READ FIRST):** `guides/output-contract.md`
|
|
2
|
+
> Checklist-only output. No tool-call narration. No raw MCP/JSON/log dumps.
|
|
3
|
+
> One checklist upfront, updated in place, shown again at end with a 1-line verdict.
|
|
4
|
+
|
|
5
|
+
> If dispatching subagents or running as a subagent: read `{PROJECT_ROOT}/.rdc/guides/agent-bootstrap.md` first (fallback: `{PROJECT_ROOT}/.rdc/guides/agent-bootstrap.md`).
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# rdc:cs2 — CS 2.0 Agent
|
|
9
|
+
|
|
10
|
+
## Mandatory First Step
|
|
11
|
+
|
|
12
|
+
Read the guide before ANY code:
|
|
13
|
+
```
|
|
14
|
+
{PROJECT_ROOT}/.rdc/guides/cs2.md
|
|
15
|
+
(fallback: {PROJECT_ROOT}/.rdc/guides/cs2.md)
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Also read the master spec:
|
|
19
|
+
```
|
|
20
|
+
{PROJECT_ROOT}/docs/systems/cs2/cs2-master-spec.md
|
|
21
|
+
{PROJECT_ROOT}/docs/systems/cs2/package-map.md
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## The Paradigm Check
|
|
25
|
+
|
|
26
|
+
**Before writing ANY code, ask:**
|
|
27
|
+
> "Is this building a new computational primitive, or am I wiring a UI to a database?"
|
|
28
|
+
|
|
29
|
+
If the latter — STOP. That is CS 1.0 thinking. Route to `rdc:frontend` + `rdc:backend`.
|
|
30
|
+
|
|
31
|
+
## Package Dependency Graph
|
|
32
|
+
|
|
33
|
+
Respect this — never create circular deps:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
Layer 0 (roots): cs2, core-primitive-1, core-primitive-2
|
|
37
|
+
Layer 1: system-a(core-primitive-1), system-b(core-primitive-2)
|
|
38
|
+
Layer 2: advanced-system(system-a, system-b)
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Apps depend on `@regen/` packages. **Apps never depend on each other.**
|
|
42
|
+
|
|
43
|
+
## TypeScript — No `any`, No Escape Hatches
|
|
44
|
+
|
|
45
|
+
CS 2.0 packages must be fully typed. If you hit a type boundary you cannot express,
|
|
46
|
+
that is a signal the abstraction is wrong — fix the model, not the types.
|
|
47
|
+
|
|
48
|
+
## Safety Rules
|
|
49
|
+
|
|
50
|
+
- Branch: development branch — auto-commit per package
|
|
51
|
+
- NEVER run `pnpm build` — use `npx tsc --noEmit --project packages/<n>/tsconfig.json`
|
|
52
|
+
- Respect the dependency graph — no circular deps
|
|
53
|
+
- Never self-modify governance weights from executing layers
|
|
54
|
+
- All immutable proofs are permanent — never update committed data
|
|
55
|
+
- NEVER overlap agents on the same package
|
|
56
|
+
- Write tests FIRST — red → implement → green
|