一键导入
foundation-worker
Handles infrastructure, database, auth, and build system features
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Handles infrastructure, database, auth, and build system features
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
View and search the AGIT audit trail. Show timeline of all agent actions with signatures, reversibility classes, and verification links.
Cryptographic signing + audit trail for every tool call. FIDES Ed25519 signatures + AGIT commit log. Every action is signed before execution, committed to an immutable audit trail, and classified into a reversibility class.
Undo, cancel, or compensate agent actions. Manages the 5-class reversibility model for all tool executions.
Handles sandbox (Daytona/E2B), browser automation (Steel), computer use, and tier gating
Handles FIDES/AGIT integration, reversibility model, tool registry, and step middleware
Handles Stripe billing, BYOK vault, GAIA eval, analytics, landing page, and deploy prep
| name | foundation-worker |
| description | Handles infrastructure, database, auth, and build system features |
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
Features involving: Convex schema/mutations/queries, WorkOS AuthKit, AI SDK v6 Agent setup, build fixes, dependency management, environment configuration, package migrations (Prisma→Convex).
None.
Read context: Read mission.md, .factory/library/architecture.md, .factory/library/environment.md, and .factory/research/ files relevant to the feature (e.g., convex.md for Convex features, workos-authkit.md for auth, ai-sdk-v6-agent.md for agent features).
Write tests first (TDD): For every module you create, write failing tests before implementation. Place tests in __tests__/ directories adjacent to the source or in the existing test structure.
Implement: Write clean TypeScript following existing patterns:
convex/ at repo rootservices/api/src/apps/web/src/@/ for apps, package names for packages)Handle Prisma→Convex migration carefully: When migrating Prisma stubs, look at the existing service's interface and preserve it. Replace const prisma = {} as any with Convex client calls. Import from the Convex API (convex/_generated/api). The web app uses useQuery/useMutation hooks; the API service uses fetchQuery/fetchMutation via a Convex client instance.
Verify:
bun run build — must passcd services/api && bunx vitest run or cd apps/web && bunx vitest run)biome check . — must passCommit atomically: One commit per logical change. Conventional commit messages (feat(convex):, chore(auth):, etc.).
{
"salientSummary": "Created Convex schema with 10 tables (users, conversations, messages, memories, commits, approvals, snapshots, subscriptions, tool_allowlist, action_log), wrote CRUD mutations/queries for all tables, wired ConvexClientProvider in Next.js layout. Build passes, 42 tests added and passing.",
"whatWasImplemented": "convex/schema.ts with 10 tables and indexes. convex/users.ts, convex/conversations.ts, convex/messages.ts etc. with create/get/list/update/delete operations. apps/web/src/app/layout.tsx updated with ConvexClientProvider.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{ "command": "bun run build", "exitCode": 0, "observation": "All workspaces built successfully" },
{ "command": "cd services/api && bunx vitest run", "exitCode": 0, "observation": "42 tests passed" },
{ "command": "biome check .", "exitCode": 0, "observation": "No errors" },
{ "command": "rg 'const prisma = {} as any' services/api/src/", "exitCode": 1, "observation": "No matches — all stubs removed" }
],
"interactiveChecks": []
},
"tests": {
"added": [
{ "file": "convex/__tests__/users.test.ts", "cases": [
{ "name": "create user", "verifies": "User creation with WorkOS ID" },
{ "name": "get user by workos id", "verifies": "User lookup by external ID" }
]}
]
},
"discoveredIssues": []
}