Skip to content
Back to skills

Showdar Build

ASecurity

Use when implementing or refactoring an agreed application change within existing architecture and contracts.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 22, 2026
developmenttypescriptrustgoswiftkotlinreactnextjsnodetestingdebugging

Works with

  • cli

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 10, 2026

npx -y skills add caongocquy/showdar-skills --skill showdar-build --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Showdar Build?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Showdar Build
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/caongocquy-showdar-build/badge)](https://www.skillsdirectory.com/skills/caongocquy-showdar-build)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: showdar-build
description: Use when implementing or refactoring an agreed application change within existing architecture and contracts.
---

# Showdar Build

## Mandatory Git preflight for task-owned writes

Before any task-owned source/config/test/docs write, apply `showdar-git` branch policy: on develop/main/integration, inspect repository conventions and EXECUTE `showdar git-start --type <type> --name "<task>"` to prepare the task branch before editing. Then run `showdar guard --mutation local-write --json` and require `ok=true` and `data.allowed=true` before ANY file-writing tool. If blocked, STOP before editing. On an existing task branch run guard without creating a new branch. Recheck when a read-only stage turns into a write. If CLI is missing, manually prepare and verify safe Git branch state; do not silently write on develop/main. Explicit documented direct-work policy wins; never infer stash, reset, commit, merge, or push.


## Purpose

- Convert an approved requirement/plan into maintainable production code.
- Preserve existing ownership boundaries and public contracts unless change is explicitly required.
- Minimize blast radius without cutting required correctness, error handling, or tests.
- Make implementation decisions evidence-based and stack-native.
- Read `references/minimal-change.md` and `references/architecture-boundaries.md` before introducing new abstractions.

## When to use

- Implementing a feature, refactor, bug fix after root cause is known, or architecture-safe change.
- Applying an approved UI implementation after design decisions are clear.
- Small migrations where the upgrade-specific analysis is already complete.
- Completing a bounded task recovered from a previous session.

## When not to use

- Root cause is unknown; use showdar-debug.
- Requirements/change surface are unclear and multiple approaches remain; use showdar-plan.
- The work is only review or testing strategy.
- Production deploy/release actions belong to showdar-ship.

## Inputs and assumptions

- User outcome and current repository conventions are understood.
- Relevant tests/build/typecheck commands are known or discoverable.
- Existing public interfaces and state ownership are constraints unless explicitly changed.
- For dirty repositories, distinguish user work from this task before editing.
- `scripts/change-surface.mjs` can summarize current git changes without mutation.

## Non-negotiable rules

- Change the smallest coherent surface that fully satisfies the behavior.
- Never “fix” uncertainty with broad optional chaining, swallowed exceptions, retries, or cache clearing.
- Preserve or improve type safety at external/data boundaries.
- Handle expected error/recovery behavior explicitly using `references/error-handling.md`.
- Do not introduce a generic abstraction for one use unless it creates a real ownership/volatility boundary.
- Keep comments focused on why/non-obvious constraints, not restating code.
- Add/adjust tests at the lowest level that can fail for the intended regression/behavior.
- Do not rewrite unrelated formatting or files.

## Approved decision boundaries

- Read the current approved feature brief, canonical glossary and relevant accepted ADRs if they exist.
- When refinement has been triggered, require explicit approval of the whole brief revision before implementing; ordinary fully specified work does not incur a new approval gate.
- Preserve agreed domain names, behavior and non-goals in code; do not change accepted decisions silently.
- If implementation exposes a genuine conflict with an approved contract, stop and request approval for the affected decision before altering scope.
- Invoke installed `showdar-domain-model` only for a meaningful shared glossary/architecture update, with a separate proposed diff and approval.
- Do not assume `showdar route`, CLI install or workflow checkpoint grants mutation authority.

## Test-driven implementation

- Use installed `showdar-tdd` for behavior-changing tasks when tests can be run at a meaningful boundary; the companion is optional, not a new workflow stage. If missing, follow the same evidence-first RED → GREEN → REFACTOR contract directly with `showdar-test` support.
- RED: add a minimal behavioral test and run it against current code. Confirm it fails for the expected missing behavior/defect rather than a broken fixture, imports or configuration.
- GREEN: make the smallest production change that makes the test pass; rerun the same targeted test and inspect negative/error cases.
- REFACTOR: improve production/test code only within the agreed task boundaries, rerun the targeted tests and affected checks to keep GREEN.
- Document actual commands and observed RED, GREEN and REFACTOR results against the plan task ID. Never fabricate a failing run or mark `[x]` when proof is absent.
- When TDD cannot meaningfully apply (docs-only, generated assets, unavailable test harness), explicitly record why and execute an honest alternate verification. Do not write ceremonial tests.
- `showdar-test` still owns broad test-level strategy and integration/E2E verification, and `showdar-review` still reviews final diffs.

## Execute and resume a task plan

- Read `references/plan-execution.md` when executing, delegating or resuming a task plan; use the agreed in-chat plan for bounded work.
- Reconcile spec/plan revision, current source, dependencies and prior receipts before editing. Checked boxes are claims; stale proof is `implemented-unverified`.
- Choose the earliest unmet dependency-ready task and an inline-first executor. Delegate only with actual host capability, adequate budget and isolated scope; serialize shared files/resources. Never claim a subagent ran when unavailable.
- Execute preflight → RED → implementation → GREEN → REFACTOR → reverify → ledger, with an honest exemption for unsuitable TDD work.
- Only mark `[x]` after implementation and fresh required proof succeed. Missing, failed or blocked proof keeps `[ ]`; safe ledger writes also require Git preflight.
- Check delegated artifacts and proof independently before integrating. Stop after two unsuccessful fix attempts on the same failing task and report evidence plus the next action.
- Scope/approved-contract drift returns the affected decision to Plan/Brainstorm. A plan or executor choice grants no Git, release or infrastructure authority.
- Handoff includes task ID, plan/spec revision, Consumes/Produces, changed paths, actual receipts, verification gaps and the next dependency-ready task. Saved plans supplement workflow-state checkpoints and separate Test/Review evidence.

## Workflow

### Phase 1 — pre-change check
- Read repository instructions and current relevant implementation/tests.
- Confirm exact change surface and must-not-change contracts.
- Inspect current diff/status so unrelated user changes are protected.

### Phase 2 — define behavior proof
- Identify the test or executable scenario that proves the requested behavior.
- For a defect, reproduce the regression first where practical.
- For new behavior, encode the smallest useful failing/acceptance test before implementation when the project supports it.

### Phase 3 — implement minimal coherent change
- Follow existing naming, dependency injection, state ownership, and error contracts.
- Keep new code local until a true reusable boundary exists.
- Update public types/contracts deliberately when required.
- Use `references/feature-flags.md` only when rollout/reversibility justifies a flag.

### Phase 4 — stack-specific pass
- Read the matching file under `stacks/` for lifecycle, rendering, native, server/client, or event-loop hazards.
- Check generated/native files only if the change requires them.

### Phase 5 — verification
- Run targeted test first, then relevant suite/typecheck/lint/build.
- Inspect final diff for unrelated changes, duplicated policy, unsafe fallback, and missing edge behavior.
- Verify all claims from fresh command output.

## Decision points

- One function change vs new service? Prefer local unless ownership/reuse demands a boundary.
- Error can be recovered here? Handle with context; otherwise propagate without swallowing cause.
- Behavior can race/retry? Model idempotency/concurrency explicitly rather than adding debounce blindly.
- Existing design/system pattern safe? Follow it; otherwise document the targeted deviation.
- Rollout risk high? Consider flag/staged path with explicit removal condition.

## Stack detection

- React: read `stacks/react.md` for state/effect/render/accessibility traps.
- Next.js: read `stacks/nextjs.md` for server/client/cache/runtime boundaries.
- React Native: read `stacks/react-native.md` for lifecycle/list/native-performance concerns.
- Flutter: read `stacks/flutter.md` for rebuild/async/layout/state concerns.
- Node/Fastify: read `stacks/node-fastify.md` for validation/event-loop/resource lifecycle.
- TypeScript: read `stacks/typescript.md` for unknown-boundary validation, unions, and public contract typing.
- NestJS: use `stacks/node-nestjs.md` for module/provider/request ownership and transaction/error boundaries.
- Dart, Swift, Kotlin, and Rust/Tauri: read the matching stack file for lifecycle, concurrency, native, and release constraints.
- Unsupported stacks: inspect project conventions and apply the same minimal/coherent contract.

## Failure modes

- Shotgun edits across layers because ownership was not identified.
- “Defensive” null/error handling that hides the real contract violation.
- Test passes only because a dependency is mocked away.
- New abstraction increases indirection without reducing policy duplication or volatility.
- Implementation changes public behavior without updated types/tests/docs.
- Performance-sensitive loop/render path gets more allocations or I/O without measurement.
- Native/build files changed by guesswork.

## Stop conditions

- Stop when the requested outcome is outside this skill and hand off to the more appropriate workflow.
- Stop before destructive, irreversible, production, credential, publishing, or deployment actions unless the user explicitly approved them.
- Stop when required evidence is unavailable and proceeding would require guessing about behavior, ownership, or safety.
- Stop when a repository instruction conflicts with this playbook; repository/user instructions win.
- Stop when requested behavior is implemented, the relevant tests/builds pass freshly, and final diff contains no unexplained changes.

## Escalation conditions

- Ask when implementation exposes an unresolved product choice or compatibility break not covered by the plan.
- Escalate destructive migration, secret, publishing, or production action.
- Return to debugging if the assumed root cause fails under the regression test.
- Return to planning if the required change surface expands into independent subsystems.

## Verification

- Run the narrow behavior/regression test and read the result.
- Run typecheck/analyzer/compiler as applicable.
- Run relevant integration/build/platform checks for touched boundaries.
- Inspect `git diff` or equivalent for unrelated edits and accidental generated files.
- For performance-sensitive changes, compare measured path before/after when feasible.
- Ensure no secrets/logged sensitive data were introduced.

## Output contract

- **Implemented** — concise behavior and exact change surface.
- **Why this shape** — ownership/contract rationale when non-obvious.
- **Tests/verification** — commands actually run and outcomes.
- **Risks/unverified** — anything not proven locally.
- **Follow-up** — only required follow-up; omit speculative cleanup.

## Anti-patterns

- Opportunistic repository-wide refactor during a feature fix.
- Adding `try/catch` that returns null/default for unknown failures.
- Threading booleans through layers instead of modeling real state.
- Memoizing every React/Flutter subtree without measurement.
- Duplicating existing token/config/business policy instead of using the owner.
- Declaring done after code edits without fresh verification.

## Example

User request: “Prevent duplicate submit on payment confirmation.”
- Confirm whether duplicate effect is UI re-entry, network retry, or backend idempotency before patching.
- Add the lowest-level regression that reproduces the confirmed duplicate path.
- Implement minimal guard/idempotency at the true owner, not every caller.
- Verify normal retry/recovery still works.
- See `examples/change-surface.md` for how to bound the patch.

Files in this skill

  • SKILL.md8.1 KB
  • data/change-smells.csv5.5 KB
  • data/index.json495 B
  • examples/change-surface.md856 B
  • references/architecture-boundaries.md491 B
  • references/error-handling.md494 B
  • references/feature-flags.md385 B
  • references/minimal-change.md480 B
  • scripts/change-surface.mjs476 B
  • stacks/dart.md376 B
  • stacks/flutter.md342 B
  • stacks/kotlin.md381 B
  • stacks/nextjs.md368 B
  • stacks/node-fastify.md353 B
  • stacks/node-nestjs.md454 B
  • stacks/react-native.md334 B
  • stacks/react.md298 B
  • stacks/rust-tauri.md414 B
  • stacks/swift.md404 B
  • stacks/typescript.md373 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.