How chatprd/tradclaw works
1. What this repo is
- Tradclaw is not a running app; it is a household AI workspace scaffold for OpenClaw.
- The architecture is built around copying and tailoring markdown files into a real household root, rather than deploying code.
2. Top-level layering
- The repo has three main layers:
- tradclaw/: setup and onboarding runbook
- workspace/: the template household operating environment
- skills/ and cron/: optional capability modules and scheduled-job examples
- This separation is the core architectural boundary: bootstrap vs. operational workspace vs. optional extensions.
3. Bootstrap and interview flow
- tradclaw/BOOTSTRAP.md is the entrypoint for setup.
- The bootstrap layer drives an interview-based tailoring process: it asks about household needs, recommends modules, and decides what should be enabled.
- The outputs of this flow are written into workspace/, which means configuration is derived from interview answers, not manually assembled from scratch.
4. Workspace as the runtime “brain”
- workspace/ is the OpenClaw-style household root and contains the persistent operational files:
- AGENTS.md
- SOUL.md
- IDENTITY.md
- USER.md
- TOOLS.md
- HEARTBEAT.md
- MEMORY.md
- memory/
- These files define the assistant’s identity, boundaries, tool access, status, and retained context. This is the main state boundary of the repo.
5. Safety and trust boundaries
- workspace/SOUL.md and workspace/TOOLS.md encode the most important policy boundary in the system.
- The repo explicitly treats family and child data as high-stakes and requires approved gateway channels before treating input as authoritative.
- Non-human inputs like email, PDFs, calendar text, cron payloads, and tool output are treated as untrusted data, which is an important architecture constraint for any diagram.
6. Memory and continuity
- workspace/MEMORY.md and workspace/memory/ provide the persistence layer for household context.
- HEARTBEAT.md acts like an operational status/attention file, while IDENTITY.md and USER.md capture who the assistant is serving and how.
- Together these files form a lightweight, markdown-based state store rather than a database.
7. Domain resource model
- workspace/resources/ is the data layer for household knowledge and routines.
- It is organized by domain: books, checklists, helpers, home maintenance, homework, meal plans, school, shopping, and stories.
- These folders are the primary content sources that skills read from and update.
8. Templates as normalized input/output shapes
- workspace/resources/templates/ contains reusable formats for household artifacts such as meal plans, shopping lists, school notes, helper payments, and story preferences.
- Architecturally, these templates reduce drift by standardizing the shape of files that skills and manual edits produce.
9. Skills as optional feature modules
- skills/ contains standalone capability bundles such as:
- calendar briefs
- school triage
- meal planner
- homework log
- book inventory
- helper payments
- home maintenance
- custom stories
- Each skill is its own folder with a SKILL.md, meaning capabilities are modular and copyable rather than hardwired into one central app.
10. How skills relate to workspace data
- Skills are designed to operate on the workspace/resources/ files relevant to their domain.
- For example, a meal-planning skill would read meal-plan and shopping resources; a homework skill would use homework resources and logs.
- This creates a clean boundary: skill logic in skills/, household state in workspace/resources/.
11. Scheduled automation boundary
- cron/ is an optional automation layer, with cron/jobs.template.json and its README serving as examples.
- It represents periodic checks such as morning briefs, school follow-ups, or maintenance reminders.
- The repo is explicit that these are examples only and should not be copied verbatim, which matters if you draw an architecture diagram with scheduling as a separate external trigger.
12. Operational flow from setup to use
- The intended flow is:
1. Read tradclaw/BOOTSTRAP.md
2. Interview the household
3. Tailor workspace/ files and relevant resources
4. Copy the tailored workspace into the real OpenClaw household root
5. Optionally install selected skills
6. Optionally wire in cron-based checks
- This is a template-to-instance architecture, not a build-and-deploy pipeline.
13. What an accurate diagram should emphasize
- Show tradclaw/ as the setup/control plane.
- Show workspace/ as the persistent household operating environment.
- Show skills/ as optional capability plug-ins.
- Show cron/ as an external scheduler feeding tasks into the same workspace boundary.
- Show resources/ and memory/ as the primary state/content stores, with safety policy around all inbound data.
Main entry points: workspace/README.md Workspace root · resources Resources · skills/README.md Skills hub · SOUL.md Soul policy
Components 23
Repository
Top-level scaffold and documentation
- Repo README · High-level repository orientation
README.md
Tradclaw setup
Interview-driven onboarding and tailoring flow
- Bootstrap · Primary setup runbook
tradclaw/BOOTSTRAP.md - Interview · Household needs discovery and tailoring questions
tradclaw/onboarding-interview.md - Module guide · Rules for choosing which modules to enable
tradclaw/module-selection-guide.md - Apply results · Translates interview answers into a concrete workspace
tradclaw/apply-interview-results.md - Primitives · Core concepts used to assemble the household scaffold
tradclaw/openclaw-primitives.md
Workspace runtime
Persistent household operating environment and state
- Workspace root · Persistent OpenClaw-style operating environment
workspace/README.md - Agents · Operating instructions for assistants in the household
workspace/AGENTS.md - Soul policy · Identity, permission, and trust boundary
workspace/SOUL.md - Tools policy · Approved tools and gateway rules
workspace/TOOLS.md - Identity · Who the assistant is serving
workspace/IDENTITY.md - User profile · Household user context and preferences
workspace/USER.md - Heartbeat · Operational attention and current status
workspace/HEARTBEAT.md - Memory file · Persistent markdown memory ledger
workspace/MEMORY.md - Memory vault · Structured continuity notes and context
workspace/memory - Resources · Household knowledge and routine content
workspace/resources - Templates · Reusable output/input formats for household artifacts
workspace/resources/templates
Skills
Optional modular capabilities
- Skills hub · Collection of optional standalone skill bundles
skills/README.md - Meal planner · Meal planning capability bundle
skills/meal-planner/SKILL.md - School triage · School notices and follow-up triage
skills/school-triage/SKILL.md - Homework log · Homework tracking and reinforcement support
skills/homework-log/SKILL.md
Cron
Optional scheduled automation examples
- Cron examples · Optional scheduled automation patterns
cron/README.md - Job template · Example recurring job configuration
cron/jobs.template.json
Connections 27
- Repo README → Bootstrap: introduces · Repository overview points to the setup entrypoint
- Bootstrap → Interview: drives · Bootstrap begins an interview-based tailoring flow
- Interview → Module guide: selects · Answers determine which modules should be enabled
- Module guide → Apply results: feeds · Selection guidance is applied to the tailored household root
- Primitives → Bootstrap: frames · Shared concepts define how the scaffold is assembled
- Apply results → Workspace root: materializes · Interview outputs are written into the workspace instance
- Workspace root → Agents: contains · Workspace root includes the operating instructions
- Workspace root → Soul policy: contains · Policy and trust boundary live in the workspace
- Workspace root → Tools policy: contains · Approved tool access is defined here
- Workspace root → Identity: contains · Assistant identity is persisted here
- Workspace root → User profile: contains · User and household profile are stored here
- Workspace root → Heartbeat: contains · Operational attention and status tracking
- Workspace root → Memory file: contains · Markdown memory ledger is part of the state boundary
- Memory file → Memory vault: extends · Structured memory folder complements the flat memory file
- Workspace root → Resources: contains · Household domain content and routines
- Resources → Templates: standardizes · Templates normalize common artifact shapes
- Skills hub → Meal planner: includes · Skills hub exposes modular capability bundles
- Skills hub → School triage: includes · Skills hub exposes modular capability bundles
- Skills hub → Homework log: includes · Skills hub exposes modular capability bundles
- Meal planner → Resources: reads/writes · Meal planning skill operates on meal and shopping resources
- School triage → Resources: reads/writes · School triage skill operates on school resources
- Homework log → Resources: reads/writes · Homework skill operates on homework resources
- Cron examples → Job template: examples · Cron layer is represented by example job definitions
- Cron examples → Workspace root: triggers · Scheduled checks feed tasks into the same workspace boundary
- Soul policy → Tools policy: governs · Policy and gateway rules together enforce trust boundaries
- Soul policy → Resources: protects · Family and child data are treated as high-stakes data
- Tools policy → Cron examples: filters · Inbound cron payloads are treated as untrusted inputs