swift-concurrency-6-2
Swift 6.2 Approachable Concurrency — single-threaded by default, @concurrent for explicit background offloading, isolated conformances for main actor types.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- icdev-build
- description
- Build code using true TDD (RED → GREEN → REFACTOR) with automatic test generation and compliance tracking. Use when implementing new features or bug fixes that require test-driven development.
- allowed-tools
- Bash, Read, Write, Edit, Glob, Grep
03 SKILL.md 正文
$icdev-build
What This Does
Implements the full TDD cycle for a feature:
- RED — Generate failing tests from feature description
- GREEN — Generate minimal code to make tests pass
- REFACTOR — Clean up code while keeping tests green
- All artifacts get CUI markings and NIST 800-53 control mappings
Steps
1. Load Project Context
!cat args/project_defaults.yaml
Read the project's existing code structure to understand patterns.
2. RED Phase — Write Failing Tests
Run the CLI command or use MCP tool write_tests MCP tool from icdev-builder:
- Feature description:
$ARGUMENTS - Generates Gherkin BDD feature file (.feature) with scenarios
- Generates pytest unit tests with assertions
- Generates behave step definitions
Verify tests fail:
Run the CLI command or use MCP tool run_tests MCP tool from icdev-builder to confirm RED state.
3. GREEN Phase — Generate Implementation Code
Run the CLI command or use MCP tool generate_code MCP tool from icdev-builder:
- Analyzes failing test files to determine required code
- Generates minimal implementation to make tests pass
- Applies CUI markings to all generated files
Verify tests pass:
Run the CLI command or use MCP tool run_tests MCP tool to confirm GREEN state.
4. REFACTOR Phase — Clean Up
Run the CLI command or use MCP tool format MCP tool from icdev-builder:
- Run black + isort (Python) or prettier (JS)
Run the CLI command or use MCP tool lint MCP tool from icdev-builder:
- Run bandit (security) + pylint/eslint (quality)
- Fix any issues found
Self-green the change before commit (review-until-green loop):
python tools/quality/review_loop.py --json— runs ICDEV's gates (ruff + changed-files coherence + SIPA) over the diff, applies deterministic autofixes, and iterates until every blocking gate passes or the cap is hit.- Address any
fix_brieffindings it reports, then re-run until green. - This is the same loop the autonomous pipeline runs pre-PR (git_ops preflight) and the pre-commit hook runs on staged files — running it here means the build lands green by hand or autonomously.
Re-run tests to confirm nothing broke.
5. Compliance Mapping
Run the CLI command or use MCP tool control_map MCP tool from icdev-compliance:
- Map
code.commitactivity to NIST controls (SA-11, CM-3)
6. Output Summary
Display:
- Tests written (count, types)
- Code generated (files, lines)
- Test results (pass/fail, coverage %)
- Lint results (issues found/fixed)
- Next steps
Example
$icdev-build "User authentication with JWT tokens, login/logout endpoints, password hashing with bcrypt"
Error Handling
- If GREEN phase fails after 3 attempts: show failing tests and ask for guidance
- If lint finds critical security issues: block and require fix before proceeding
- If coverage drops below threshold (80%): warn but continue
04 同仓库更多 Skills
remotion-video-creation
Best practices for Remotion - Video creation in React. 29 domain-specific rules covering 3D, animations, audio, captions, charts, transitions, and more.
hotcook-recipes
暂无简介
code-helper
Code review and assistance skill
research-assistant
Web research assistant skill using Brave Search MCP
x-api
X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.
workspace-surface-audit
Audit the active repo, MCP servers, plugins, connectors, env surfaces, and harness setup, then recommend the highest-value ECC-native skills, hooks, agents, and operator workflows. Use when the user wants help setting up Claude Code or understanding what capabilities are actually available in their environment.