Community寫作與編輯github.com

aizech/bernhard-zechmann-skills

Modular AI agent skills used across engineering, writing, and research workflows. Model‑agnostic, composable, and production‑tested. Includes engineering, productivity, personal, and experimental skill packs.

相容平台Claude Code~Codex CLICursorOpenCode
npx skills add aizech/bernhard-zechmann-skills

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

說明文件

Test-Driven Development

Build features and fix bugs one vertical slice at a time, using tests as the feedback loop.

Core principle

Tests verify behavior through public interfaces, not implementation details. If you refactor and the test breaks without behavior changing, the test was wrong.

Anti-pattern: horizontal slices

Do not write all tests first, then all implementation. Write one test, make it pass, then repeat.

Wrong:  RED test1, test2, test3 -> GREEN impl1, impl2, impl3
Right:  RED test1 -> GREEN impl1 -> RED test2 -> GREEN impl2 -> ...

Workflow

1. Plan

  • Confirm the interface changes with the user.
  • Confirm which behaviors to test. You cannot test everything.
  • List behaviors as observable outcomes, not implementation steps.
  • Get user approval before writing code.

2. Tracer bullet

Write one test for one behavior. Watch it fail. Write the minimal code to make it pass.

3. Incremental loop

For each remaining behavior:

  • Write the next test.
  • Make it pass with minimal code.
  • Do not anticipate future tests.

4. Refactor

After all tests pass:

  • Extract duplication.
  • Deepen modules: small interface, deep implementation.
  • Run tests after each refactor step.

Never refactor while RED.

Checklist per cycle

  • Test describes behavior, not implementation.
  • Test uses the public interface.
  • Test would survive an internal refactor.
  • Code is minimal for this test.
  • No speculative features added.

Rules

  • Write tests before implementation for new behavior.
  • Use type hints and clear names.
  • Keep functions small and single-purpose.
  • Fail fast with clear error messages.

相關技能

steipete/notion

Notion CLI/API for pages, Markdown content, data sources, files, comments, search, Workers, and raw API calls.

community

affaan-m/seo

Audit, plan, and implement SEO improvements across technical SEO, on-page optimization, structured data, Core Web Vitals, and content strategy. Use when the user wants better search visibility, SEO remediation, schema markup, sitemap/robots work, or keyword mapping.

community

affaan-m/brand-voice

Build a source-derived writing style profile from real posts, essays, launch notes, docs, or site copy, then reuse that profile across content, outreach, and social workflows. Use when the user wants voice consistency without generic AI writing tropes.

community

affaan-m/crosspost

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

community

affaan-m/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.

community

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

community