跳到正文
cccskills
免费在 GitHub 公开

role-developer

Developer role in AID methodology. Use for implementation, debugging, technical design, TDD workflow, code review.

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

查看安装方法

包含的文件(8)

  • SKILL.md2.5 KB
  • references/condition-based-waiting.ts7.5 KB
  • references/debugging-checklist.md3.6 KB
  • references/defense-in-depth.ts8.8 KB
  • references/root-cause-tracing.md6.5 KB
  • scripts/check-file-size.sh6.8 KB
  • scripts/find-polluter.sh3.9 KB
  • SKILL.extended.md4.5 KB

SKILL.md(原文)

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

Developer Role

Core Responsibilities

  • Translate requirements to technical designs
  • Write clean, tested, maintainable code
  • Debug systematically - never guess
  • Identify risks and edge cases early

Phase Focus

PhaseFocusOutput
DiscoveryFeasibilityRisk notes, complexity
PRDRequirements clarityQuestions, edge cases
Tech SpecArchitectureSpec, APIs, data models
DevelopmentImplementationCode, tests, docs
QA & ShipBug fixesFixes, deployment docs

TDD Workflow

RED (Write failing test) -> GREEN (Minimal code) -> REFACTOR (Clean up) -> REPEAT

Systematic Debugging

NO FIXES WITHOUT ROOT CAUSE.

  1. Root Cause - Read errors, reproduce, gather evidence
  2. Pattern Analysis - Find working examples, compare
  3. Hypothesis - Single theory, test minimally
  4. Implementation - Failing test, single fix, verify

If 3+ fixes failed -> Stop, question architecture.

Defense-in-Depth

Validate at EVERY layer:

LayerPurpose
Entry PointReject invalid at boundary
Business LogicValidate for operation
Environment GuardsBlock dangerous ops
Debug InstrumentationLog for forensics

300-Line Rule

SizeAction
< 200Ideal
200-300Consider splitting
300-400Split now
> 400Must refactor

Module Structure

feature/
  feature.controller.ts   # HTTP (thin)
  feature.service.ts      # Business logic
  feature.repository.ts   # Data access
  feature.types.ts        # Types
  feature.validation.ts   # Validation

Code Quality

Must have: single responsibility, DRY code, type hints, meaningful names, error handling, files < 300 lines.

Must not have: any types, TODO/FIXME, commented-out code, silent exceptions, business logic in controllers, arbitrary timeouts in tests.

Async Testing

// Wrong
await sleep(100);

// Right
await waitFor(() => result !== undefined);

Anti-Patterns

Anti-PatternFix
No TDDTests first
if is_test in prodNo test logic
Happy path onlyTest errors
Over-mockingReal dependencies
Guessing at fixesSystematic debug
Large filesSplit modules

Handoff Checklist

  • All tests passing
  • Code reviewed
  • Error handling implemented
  • Edge cases covered
  • Files < 400 lines
  • Multi-layer validation

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

AID Phase 4 - Development phase. Use for implementing features, TDD practices, code reviews, transitioning from planning to QA.

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

ilandahan/AID102026年9月23日 更新

AID Phase 0 - Research & discovery. Use for validating problem spaces, identifying stakeholders, defining success metrics, deciding whether to proceed.

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

ilandahan/AID102026年9月23日 更新

AID Phase 3 - Implementation Planning with consolidation-first approach. Resolves contradictions between PRD and Tech Spec, creates consolidated master document, then breaks down into actionable tasks and populates Jira. Includes sprint planning and risk assessment.

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

ilandahan/AID102026年9月23日 更新

aid-prd

免费

AID Phase 1 - PRD creation. Use for user stories, acceptance criteria, scoping features, transitioning from discovery to tech spec.

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

ilandahan/AID102026年9月23日 更新

AID Phase 5 - QA and Release. Use for validating implementations, acceptance tests, preparing releases, deployment, operational readiness.

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

ilandahan/AID102026年9月23日 更新

AID Phase 2 - Technical Specification. Use for system architecture, API contracts, data models, security architecture, transitioning from PRD to implementation.

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

ilandahan/AID102026年9月23日 更新

查看 ilandahan 的全部技能

报告此技能的问题