소스 정보
- 저장소
- ucsandman/dashclaw-agent
- 최근 소스 활동
- 2026년 3월 17일 19:01
- 감지된 SKILL.md 언어
- 영어
- 스타
- 0
- 포크
- 1
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/ucsandman/dashclaw-agent --skill build-dashclaw명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
Integrate DashClaw SDK into any agent using the 4-step governance loop
Register any agent (including this one) as a governed agent on a DashClaw instance
Set up a DashClaw instance, install the CLI tool, and configure Claude Code hooks
| name | build-dashclaw |
| description | Contribute to the DashClaw codebase — architecture, scaffolding, tests, CI |
| license | MIT |
| metadata | {"author":"ucsandman","version":"1.0.0","category":"development"} |
Guide for contributing to the DashClaw codebase. Covers architecture, adding new capabilities, testing, and CI.
DashClaw is organized into 3 tiers:
app/api/)7 mandatory endpoints that define DashClaw's governance category:
| Route | Method | Purpose |
|---|---|---|
/api/guard | POST | Policy evaluation — "can I do this?" |
/api/actions | POST, PATCH, GET | Action lifecycle recording |
/api/approvals | POST | Human approval decisions |
/api/assumptions | POST, GET | Reasoning integrity tracking |
/api/signals | GET | Real-time anomaly detection |
/api/policies | GET, POST | Guard policy management |
/api/health | GET | System readiness |
The 7-route boundary is CI-enforced. Adding a new core route requires justification.
app/(extensions)/)Modular operational intelligence:
app/api/_archive/)Legacy features from the "Agent Platform" era. Physically isolated.
| Layer | Technology |
|---|---|
| Runtime | Node.js 20+ |
| Framework | Next.js 15 (App Router) |
| Database | Postgres (Neon recommended) |
| ORM | Drizzle ORM |
| Auth | NextAuth.js v4 |
| UI | React 18, Tailwind CSS 3 |
| Testing | Vitest + jsdom |
| Package Manager | npm |
All IDs are TEXT with crypto-random prefixed values:
import { randomBytes } from 'crypto';
const id = `act_${randomBytes(16).toString('hex')}`;
ID prefixes: ar_ (actions), oc_live_/oc_test_ (API keys), sp_ (scoring profiles), pt_ (prompt templates), etc.
No direct SQL in route handlers. All data access goes through repository modules:
app/lib/repositories/*.repository.js
Route handlers import from repositories, never inline SQL.
Request → Strip client org headers → Rate limit → Route matching
→ Public routes: pass through
→ Protected routes: x-api-key (fast path: timing-safe compare)
→ Inject org context from resolved key
When adding a new feature to DashClaw:
app/lib/repositories/<name>.repository.js (all SQL here)app/lib/<name>.js (business logic)app/api/<name>/route.js (imports from repository)sdk/dashclaw.js (camelCase)sdk-python/dashclaw/client.py (snake_case)docs/sdk-parity.md with new method countsThe v1 SDK has 187 methods across 31 categories. When promoting to v2:
High priority (core governance):
registerOpenLoop() + resolveOpenLoop() — Decision integrityevents() — Real-time SSE eventsheartbeat() + startHeartbeat() — Agent telemetryMedium priority (analytics):
getRecommendations() + recommendAction() — Adaptive learninggetLearningVelocity() + getLearningCurves() — Learning analyticsgetSignals() — Decision integrity signalsSee knowledge/legacy-sdk-reference.md for the full inventory with all method signatures.
# Run all tests (watch mode)
npm run test
# Run tests once (CI mode)
npm run test -- --run
# Run specific test file
npx vitest run app/lib/__tests__/guard.test.js
Tests live alongside their modules or in __tests__/ directories.
Three mandatory CI checks:
# 1. Governance boundary — enforces 7-route API limit
npm run governance:boundary:check
# 2. OpenAPI contract — detects API drift
npm run openapi:check
# 3. Tests
npm run test -- --run
All three must pass before merge.
| File | What to Read |
|---|---|
PROJECT_DETAILS.md | Canonical system map (source of truth) |
CLAUDE.md | Contributing conventions |
app/lib/guard.js | Risk scoring engine |
app/lib/signals.js | Anomaly detection logic |
sdk/dashclaw.js | V2 SDK implementation |
sdk/legacy/dashclaw-v1.js | V1 SDK (187 methods) |
schema/schema.js | Database schema (Drizzle) |
middleware.js | Auth chain |
docs/sdk-parity.md | SDK method parity matrix |
PROJECT_DETAILS.md and CLAUDE.mdSOC 직업 분류 기준