跳到正文
cccskills
免费在 GitHub 公开

godmode-engineering

BDB Engineering Godmode, enforcing strict Domain-Driven Design, TypeScript strictness, and Clean Architecture. Use when implementing backend/fullstack features or running the systematic 5-step debugging triage.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md5.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

⚙️ BDB Engineering Godmode

This skill orchestrates the core logic, domain modeling, and typing constraints of the codebase. It replaces scattershot coding with rigorous, structured engineering methodologies designed for the BDB ecosystem. As an agent, you must execute these principles rigorously across all supported harnesses (Cursor, Claude Code, Agy, Copilot).

1. Domain Modeling & Type Strictness

Code represents business logic. Do not write implementation details before defining the boundaries.

  • Strict Typing: any is strictly forbidden. Use unknown if a type is truly dynamic, and validate it at runtime (e.g., using Zod).
  • Discriminated Unions: Always use Discriminated Unions (tagged unions) to model state machines. Never rely on multiple optional boolean flags (e.g., isLoading, isError, isSuccess). Instead, use { status: 'loading' } | { status: 'error', error: string } | { status: 'success', data: T }.
  • Immutability: State must be immutable. Use .map(), .filter(), and .reduce() over standard for loops where data transformation is required.

2. Codebase Architecture (Clean Architecture)

Do not couple business logic tightly to framework details (like React components or Express routes).

  • Separation of Concerns: Keep UI logic separate from data fetching. Use custom hooks (in React) or Controllers/Services (in backend) to abstract API calls.
  • Dependency Injection: Pass dependencies as arguments rather than hardcoding global imports to ensure the logic remains testable.
  • ADR (Architecture Decision Records): For any major architectural choice (e.g., choosing a new ORM, changing a state management pattern), document the context, decision, and consequences before proceeding.

3. Systematic Debugging (The 5-Step Triage)

Do not guess fixes based on a single error log line. If an error occurs, you must execute the 5-step triage:

  1. Reproduce: Find the exact sequence of inputs that reliably causes the error.
  2. Localize: Narrow down the error to a specific file or function.
  3. Reduce: Isolate the function. Can the bug be replicated in a minimal unit test?
  4. Fix: Implement the precise logic fix without breaking adjacent code.
  5. Guard: Write a permanent test (Unit or E2E) to prevent regressions.

4. Observability & Telemetry

Production code fails. You must ensure we know why it failed.

  • Structured Logging: Do not use console.log("here"). Use structured, level-based logging with context (e.g., logger.error("Failed to fetch user", { userId, error: e.message })).
  • Error Boundaries: Ensure the app handles unexpected errors gracefully without crashing the entire process (React Error Boundaries, Node.js global catchers).

5. Creator Extension & BDB MediaStorm Governance

This Godmode extends beyond standard software development. It STRICTLY governs creative-tech and show-control workflows (BDB Creator Extension).

  • 11-MCP Validation: When the user invokes /bdbmediastorm for TouchDesigner, Unreal Engine, GrandMA3, or Adobe Suite workflows, you MUST validate the signal flow against hardware constraints and MCP availability.
  • Creative-Tech Architecture: The same principles of Clean Architecture and Modularity apply to node-based graphs (TouchDesigner), Blueprint architectures (Unreal), and DMX showfiles. Do not create monolithic, entangled creative networks.

Universal Agent Harness Integration

This Godmode is universally compatible and governs all extensions, including the BDB Creator Engine.

  • Cursor: Auto-injected via .cursor/rules/godmode-engineering.mdc.
  • Claude Code: Reads principles via CLAUDE.md.
  • Agy / CLI Agents: Natively enforced via the prompt orchestrator.
  • Execution: You (the AI) must silently validate your planned logic against these strict engineering principles before writing code.

1. Overview

This skill provides domain-specific logic and rules for its respective BDB pipeline component to ensure standardization across multi-agent workflows.

2. When to Use

  • Use when specifically requested by the user or triggered by an orchestration agent.
  • Use when the current task aligns with the skill's domain.
  • Exclude when standard tool execution is sufficient.

3. Core Process

  1. Read the provided context and ensure preconditions are met.
  2. Run the required script or tool and confirm the state change.
  3. Verify exit codes, file modifications, or DB counts to guarantee success before reporting completion.

4. Common Rationalizations

RationalizationReality
"The code change was small, so I skipped updating OpenWiki docs."Every state change must be reflected in the relevant system records.
"The ingest script exited without an error, so the memB index must be updated."Silent failures happen; explicit verification of the side effect is mandatory.
"I'll let the /startcycle proceed without a defined rollback path."Proceeding without a rollback path corrupts the workflow integrity and safety.
"I trust the cached agent registry instead of rescanning after a skill change."Caches stale out quickly; explicit rescans prevent ghost failures.

5. Red Flags

  • Bypassing the verification step after a script execution.
  • Proceeding to the next pipeline stage without confirming the previous stage's side effects.
  • Ignoring domain-specific constraints listed in this skill.

6. Verification

  • Verified script exit codes are explicitly checked.
  • Confirmed target files or database records reflect the expected change.
  • Ensured no silent failures were ignored before reporting success.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use when manage multiple local CLI agents via tmux sessions (start/stop/monitor/assign) with cron-friendly scheduling.

中文简介正在准备中。当前显示原文说明。

hybridlabor-api/aos62026年10月16日 更新

Use when a hybrid memory system that provides persistent, searchable knowledge management for AI agents (Architecture, Patterns, Decisions).

中文简介正在准备中。当前显示原文说明。

hybridlabor-api/aos62026年10月16日 更新

Reference for how BDB structures autonomous software engineering work — the seven-node dispatcher graph (Architect, TechLead, UI/UX, Engineering, Media/EventTech, Reviewer, Shipping) that /startcycle-graph actually runs. Use when you need the high-level lifecycle framing without inventing your own process.

中文简介正在准备中。当前显示原文说明。

hybridlabor-api/aos62026年10月16日 更新

Tools are how AI agents interact with the world. A well-designed tool is the difference between an agent that works and one that hallucinates, fails silently, or costs 10x more tokens than necessary. This skill covers tool design from schema to error handling.

中文简介正在准备中。当前显示原文说明。

hybridlabor-api/aos62026年10月16日 更新

Harness patterns for coding agents — memory, permissions, context engineering, delegation, skills, hooks, bootstrap.

中文简介正在准备中。当前显示原文说明。

hybridlabor-api/aos62026年10月16日 更新

agenttrail: live map of a multi-agent build in the browser: which plan component is being worked on, by which agent or harness, what is done and what is stuck. Use when a multi-agent pipeline starts (/startcycle, /startcycle-graph, /teamwork-preview) or after a plan-canvas approve, when the user asks to see what the agents are doing ("live map", "build board", "who is running now"), or by yourself whenever a multi-agent run is under way — no user prompt needed.

中文简介正在准备中。当前显示原文说明。

hybridlabor-api/aos62026年10月16日 更新

查看 hybridlabor-api 的全部技能

报告此技能的问题