AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Build Incremental

skill-mostafa-drz-claude-skills-build-incremental · by mostafa-drz

>-

No reviews yet
0 installs
35 views
0.0% view→install

Install

$ agentstack add skill-mostafa-drz-claude-skills-build-incremental

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-mostafa-drz-claude-skills-build-incremental)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Build Incremental? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Build

Implement code in progressive, verified increments. Each unit is built, checked, and committed before moving to the next.

Preferences

Read ~/.claude/skills/build-incremental/preferences.md using the Read tool. If not found, no preferences are set.

Project context

On startup, use Bash to detect: project stack files (ls package.json Cargo.toml pyproject.toml go.mod Makefile), CLAUDE.md presence, current git branch, and git status. Skip any that fail.

Command routing

Check $ARGUMENTS:

  • help → display help then stop
  • config → interactive setup then stop
  • reset → delete ~/.claude/skills/build-incremental/preferences.md, confirm, stop
  • --dry-run → show the plan without executing then stop
  • --no-commit → build and verify but don't commit
  • --skip-lint → skip linting, only run type checks
  • anything else → proceed with build

Help

Build — Implement code in verified increments

Usage:
  /build-incremental              Build incrementally with checks + commits
  /build-incremental --dry-run      Show plan without executing
  /build-incremental --no-commit    Build and verify, don't commit
  /build-incremental --skip-lint    Skip lint, only typecheck
  /build-incremental config                      Set toolchain and commit preferences
  /build-incremental reset                       Clear preferences
  /build-incremental help                        This help

Examples:
  /build-incremental add user settings page with form validation
  /build-incremental Milestone 2 from IMPLEMENTATION_PLAN.md
  /build-incremental --dry-run refactor auth middleware

How it works:
  1. Detects your toolchain (or reads from preferences)
  2. Breaks work into committable units
  3. For each unit: implement → check → fix → commit
  4. Reports summary with all commits

Current preferences:
  (shown above under Preferences)

Config

Use AskUserQuestion:

Q1 — "Type check command?" (auto-detect (default), custom command)

  • Auto-detect looks for: pnpm typecheck, npm run typecheck, tsc --noEmit, cargo check, go vet, mypy ., pyright

Q2 — "Lint command?" (auto-detect (default), custom command, skip)

  • Auto-detect looks for: pnpm lint, npm run lint, cargo clippy, golangci-lint run, ruff check

Q3 — "Lint fix command?" (auto-detect (default), custom command, skip)

  • Auto-detect looks for: pnpm lint:fix, npm run lint:fix, cargo clippy --fix, ruff check --fix

Q4 — "Commit style?" (conventional (default) — feat:, fix:, etc.; simple — plain messages; project-default — read from CLAUDE.md)

Q5 — "Unit size?" (small — 1-2 files per commit; medium — 3-5 files (default); large — whole milestone)

Save to ~/.claude/skills/build-incremental/preferences.md.

First-time detection

If no preferences file exists:

  1. Auto-detect the toolchain from project files:
  • package.json → check for typecheck, lint, lint:fix scripts, detect pnpm/npm/yarn from lockfile
  • Cargo.tomlcargo check, cargo clippy
  • pyproject.toml / requirements.txtmypy, ruff, pyright
  • go.modgo vet, golangci-lint
  • Makefile → check for lint, check targets
  1. Show: "Detected: [toolchain]. Run /build-incremental config to customize, or continue with these defaults."
  1. Proceed normally.

Build process

Step 1: Understand scope

  1. Read context:
  • CLAUDE.md for project conventions
  • IMPLEMENTATION_PLAN.md if it exists and $ARGUMENTS references a milestone
  • Existing code in the target area
  • Related components for pattern consistency
  1. Break work into committable units (size based on preference)
  2. Order: types/interfaces first → logic/providers → components → pages/routes

If --dry-run, show the plan and stop.

Step 2: Implement one unit

Write the code for one unit. Follow project conventions from CLAUDE.md. Read existing code before modifying.

Step 3: Verify

Run checks in this order:

Type check:

{typecheck command from preferences or auto-detected}

If fails: read errors, fix, re-run until passing.

Lint:

{lint command}

If fails:

  1. Run lint fix: {lint fix command}
  2. Fix remaining issues manually
  3. Re-run until passing (warnings OK, errors not)

Skip lint if --skip-lint flag.

Step 4: Commit

Skip if --no-commit flag.

  • Stage specific files (never git add -A or git add .)
  • Commit with semantic message based on style preference:
  • conventional: feat(scope): description, fix(scope): description, refactor: description
  • simple: plain descriptive message
  • project-default: follow CLAUDE.md conventions
  • Under 72 characters
  • Describe what changed, not which files

Step 5: Repeat or complete

Check if more units remain. If yes → Step 2. If no → summary.

Completion summary

Build complete: {description}

Commits:
  1. {hash} {message}
  2. {hash} {message}

Verification:
  ✓ Type check: no errors
  ✓ Lint: no errors

{If milestone: Next milestone: {name} or "none remaining"}

Rules

  • Never skip verification — every commit must pass checks
  • Never commit unrelated changes together — one unit per commit
  • Never use git add . — always add specific files
  • Never amend previous commits unless explicitly asked
  • Fix forward — if checks fail, fix and re-verify, don't revert
  • Read before writing — always read existing code first
  • Ask when uncertain — if scope is ambiguous, ask before implementing

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.