agentleFS
martincjarvismartincjarvis/development-skills/skills/local-dev-experience/SKILL.md

local-dev-experience

Skill4 starsChanged 10 months agoMITView on GitHub

Use when setting up or optimizing local development environments for fast feedback loops. Applies to any project where iteration speed matters. Covers hot reload, incremental builds, test filtering, IDE optimization, and multi-service local development patterns.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Document development startup patterns

    line 33
  2. Distinctive:

    Verify sub-second feedback achievable

    line 34
  3. Distinctive:

    Principle: Never manually restart. Watch modes detect changes automatically.

    line 48
  4. Distinctive:

    Principle: Run only what you're changing.

    line 88
  5. Distinctive:

    If exceeding targets, investigate and optimize.

    line 132
  6. Distinctive:

    Use this worksheet to measure current state and track improvements:

    line 136

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Local Dev Experience

Overview

P3 Delivery & Flow - Developer productivity through fast feedback loops.

REQUIRED: superpowers:verification-before-completion

When to Use

  • Setting up new project for local development
  • Build or test times exceed 5 seconds
  • IDE performance issues
  • Multi-service local development needs
  • Opt-out: Explicit trade-off decision documented

Core Workflow

  1. Identify current iteration cycle time
  2. Configure watch modes for automatic rebuilds
  3. Enable incremental compilation/builds
  4. Set up targeted test execution
  5. Optimize IDE for project type
  6. Configure minimal service dependencies
  7. Document development startup patterns
  8. Verify sub-second feedback achievable

Quick Reference

Pattern.NETNode.js/TypeScriptPython
Hot Reloaddotnet watchnodemon, tsxuvicorn --reload
Incremental BuildDirectory.Build.propstsconfig incrementalN/A
Test Watchdotnet watch testjest --watchpytest-watch
Test Filter--filter--testNamePattern-k
Lint CacheN/Aeslint --cacheruff --cache

Watch Mode Patterns

Principle: Never manually restart. Watch modes detect changes automatically.

# .NET
dotnet watch run
dotnet watch test --filter "Category=Unit"

# Node.js
npm run dev          # with nodemon or tsx
npm test -- --watch  # jest watch mode

# Python
uvicorn main:app --reload
ptw -- -x           # pytest-watch, stop on first failure

Incremental Build Setup

.NET (Directory.Build.props):

<PropertyGroup>
  <IncrementalBuild>true</IncrementalBuild>
  <BuildInParallel>true</BuildInParallel>
</PropertyGroup>

TypeScript (tsconfig.json):

{
  "compilerOptions": {
    "incremental": true,
    "tsBuildInfoFile": ".tsbuildinfo"
  }
}

Multi-Service Local Dev

Principle: Run only what you're changing. Mock dependencies.

  1. Docker Compose profiles for selective startup
  2. Mock services (WireMock, MSW) for dependencies
  3. Environment-based service URLs
  4. Single-service development mode
# docker-compose.override.yml
services:
  api:
    profiles: [dev, full]
  mocks:
    profiles: [dev]
  database:
    profiles: [dev, full]

IDE Optimization

  • Exclude generated folders (node_modules, bin, obj, .git)
  • Configure file watchers for project type
  • Limit search scope to source directories
  • Enable format-on-save with cached formatters

Red Flags - STOP

  • "Just restart the application"
  • "Run the full test suite every time"
  • "Start all services for local dev"
  • "Wait for the build to complete"
  • "Default configuration is good enough"

All mean: Apply fast feedback patterns or document trade-off decision.

Feedback Loop Targets

OperationTargetAcceptable
Code change to running< 1s< 3s
Single test execution< 2s< 5s
Lint/format check< 1s< 3s
Service startup< 10s< 30s

If exceeding targets, investigate and optimize.

Baseline vs Target Worksheet

Use this worksheet to measure current state and track improvements:

# Local Dev Experience Assessment

**Project**: [Project Name]
**Date**: YYYY-MM-DD
**Assessor**: [Name]

## Current Baseline Measurements

| Operation              | Baseline | Target | Gap     | Priority |
| ---------------------- | -------- | ------ | ------- | -------- |
| Code change to running | [X]s     | < 1s   | [X-1]s  | [H/M/L]  |
| Single test execution  | [X]s     | < 2s   | [X-2]s  | [H/M/L]  |
| Full test suite        | [X]s     | < 60s  | [X-60]s | [H/M/L]  |
| Lint/format check      | [X]s     | < 1s   | [X-1]s  | [H/M/L]  |
| Service startup        | [X]s     | < 10s  | [X-10]s | [H/M/L]  |
| Full rebuild           | [X]s     | < 30s  | [X-30]s | [H/M/L]  |

## Measurement Commands

Record the commands used to measure each baseline:

| Operation       | Command                                         | Notes |
| --------------- | ----------------------------------------------- | ----- |
| Hot reload      | `time (edit file && wait for reload)`           |       |
| Single test     | `time npm test -- --testNamePattern="specific"` |       |
| Full suite      | `time npm test`                                 |       |
| Lint check      | `time npm run lint`                             |       |
| Service startup | `time npm run dev` (until ready)                |       |
| Full rebuild    | `time npm run build`                            |       |

## Improvement Actions

| Action                    | Expected Gain    | Actual Gain | Status    |
| ------------------------- | ---------------- | ----------- | --------- |
| Enable incremental builds | -50% build time  |             | ☐ Pending |
| Configure test filtering  | -80% test time   |             | ☐ Pending |
| Add lint caching          | -70% lint time   |             | ☐ Pending |
| Enable hot reload         | -90% reload time |             | ☐ Pending |

## Evidence Capture

### Before Optimization

```bash
# Record baseline measurements
$ time npm run build
real    0m45.123s

$ time npm test
real    1m23.456s
```

### After Optimization

```bash
# Record improved measurements
$ time npm run build
real    0m12.345s  # 73% improvement

$ time npm test -- --watch --changedSince=main
real    0m5.678s   # 96% improvement (changed files only)
```

## Summary

- **Total time saved per iteration**: [X] seconds
- **Iterations per day (estimated)**: [N]
- **Daily productivity gain**: [X × N] seconds = [Y] minutes

Quick Measurement Script

#!/bin/bash
# measure-dev-experience.sh

echo "=== Local Dev Experience Baseline ==="
echo ""

# Full build time
echo "Measuring full build..."
BUILD_TIME=$( { time npm run build 2>&1; } 2>&1 | grep real | awk '{print $2}' )
echo "Full build: $BUILD_TIME"

# Single test time
echo "Measuring single test..."
TEST_TIME=$( { time npm test -- --testNamePattern="should" --bail 2>&1; } 2>&1 | grep real | awk '{print $2}' )
echo "Single test: $TEST_TIME"

# Lint time
echo "Measuring lint..."
LINT_TIME=$( { time npm run lint 2>&1; } 2>&1 | grep real | awk '{print $2}' )
echo "Lint check: $LINT_TIME"

echo ""
echo "=== Results ==="
echo "Build: $BUILD_TIME"
echo "Test:  $TEST_TIME"
echo "Lint:  $LINT_TIME"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.