~ / rigs / AlleyBo55 / doraemon

AlleyBo55/doraemon

Doraemon live in desktop

↗ GitHub ★ 46 no license updated 4mo ago project Kiro
share on X
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
CONTEXT TAX · EVERY TURN
~14.7k tokens
Heavy · median rig: 2.3k · breakdown
GUARDRAILS
2/5
Blocks destructive commands · Pre-tool screening hook · details
Quality 5/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ claude mcp add doraemon -- npx tsx ./doraemon/src/main/mcp-server/doraemon-mcp.ts --workspace .
$ claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem .

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ claude mcp add doraemon -- npx tsx ./doraemon/src/main/mcp-server/doraemon-mcp.ts --workspace .
$ claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem .

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "shell",
        "hooks": [
          {
            "type": "prompt",
            "command": "SECURITY CHECK: Before executing this shell command, verify it does NOT:\n1. Delete files (rm, rmdir, del)\n2. Change permissions (chmod, chown, sudo, su)\n3. Execute interpreters (python, node, ruby, perl, eval)\n4. Access system files (/etc/*"
          }
        ]
      },
      {
        "matcher": "write",
        "hooks": [
          {
            "type": "prompt",
            "command": "SECURITY CHECK: Before writing this file, verify:\n1. The file is NOT a skill file (*-skill.md) being auto-generated by the self-evolution skill — self-evolution is READ-ONLY\n2. The file is NOT soul.md, .env, or any config/secret file\n3. The"
          },
          {
            "type": "prompt",
            "command": "If the file being written is an OpenClaw skill file (matches *-skill.md in the openclaw directory), validate it has:\n1. Valid YAML frontmatter with name, description, and metadata fields\n2. At least one exec() or web_search() call pattern\n3"
          }
        ]
      },
      {
        "matcher": "web",
        "hooks": [
          {
            "type": "prompt",
            "command": "OSINT SECURITY CHECK: Before executing this web search/fetch, verify it does NOT:\n\n1. STALKING PATTERN: Repeated lookups on the same individual (check conversation history — if 3+ searches about same person, DENY)\n2. PII HARVESTING: Searchi"
          }
        ]
      }
    ]
  }
}

MCP servers (2)

serversourceest. tokens
tsx · "doraemon" npm 2.5k
Filesystem npm 4.2k

Hooks (14)

eventmatcherruns
PreToolUseshellSECURITY CHECK: Before executing this shell command, verify it does NOT: 1. Delete files (rm, rmdir, del) 2. Change permissions (chmod, chown, sudo, su) 3. Execute interpreters (python, node, ruby, perl, eval) 4. Access system files (/etc/*
PreToolUsewriteSECURITY CHECK: Before writing this file, verify: 1. The file is NOT a skill file (*-skill.md) being auto-generated by the self-evolution skill — self-evolution is READ-ONLY 2. The file is NOT soul.md, .env, or any config/secret file 3. The
PostFileSave**/.doraemon/request.jsonA Doraemon request has been updated. Read the file .doraemon/request.json to see what Doraemon wants. Process the request based on its type: - If type is 'chat': Answer the message field as a normal chat request - If type is 'command': Exe
FileCreated**/.doraemon/request.jsonA Doraemon request has been created. Read the file .doraemon/request.json to see what Doraemon wants. Process the request based on its type: - If type is 'chat': Answer the message field as a normal chat request - If type is 'command': Exe
FileCreated**/openclaw/*-skill.mdA new OpenClaw skill was just created. Check that the routing system is fully wired up for it: 1. Read the new skill file to get its name 2. Check doraemon/src/renderer/services/routing/types.ts has a matching TaskType 3. Check doraemon/sr
PostToolUseshellIf the shell command just executed was a curl request to fetch media or oembed data, verify the response: 1. Any media URLs found must be from known CDN domains (pbs.twimg.com, scontent*.cdninstagram.com, img.youtube.com, p16-sign*.tiktokcd
FileCreated**/openclaw/*-skill.mdbash doraemon/openclaw/sync.sh
PostFileSave**/openclaw/*-skill.mdbash doraemon/openclaw/sync.sh
PostFileSave**/openclaw/soul.mdbash doraemon/openclaw/sync.sh
PreToolUsewebOSINT SECURITY CHECK: Before executing this web search/fetch, verify it does NOT: 1. STALKING PATTERN: Repeated lookups on the same individual (check conversation history — if 3+ searches about same person, DENY) 2. PII HARVESTING: Searchi
PostFileSave**/services/routing/*.tsA routing system file was edited. Run getDiagnostics on all routing files to check for type errors: - doraemon/src/renderer/services/routing/types.ts - <redacted>.ts - doraemon/src/renderer/services/routing/intent-detector.ts - doraemon/src
Stop*Quick self-reflection: Review the conversation that just ended. In 2-3 sentences, note: 1. What went well (response quality, helpfulness) 2. What could improve (missed intent, wrong tone, incomplete answer) 3. Any pattern worth remembering
PostFileSave**/routing/types.tsThe TaskType definition was edited. Validate the full skill chain is intact: 1. Read doraemon/src/renderer/services/routing/types.ts and extract all TaskType values 2. For each TaskType (except general_chat), verify it exists in: - inte
PreToolUsewriteIf the file being written is an OpenClaw skill file (matches *-skill.md in the openclaw directory), validate it has: 1. Valid YAML frontmatter with name, description, and metadata fields 2. At least one exec() or web_search() call pattern 3

Kiro (16 steering · 14 hook files)

MCP config: 10 auto-approved tool(s)

How Kiro files are scored: methodology.

Similar rigs

copied ✓