Skip to content
audit-engineering-productivity logo

Single-Session Engineering Productivity Audit

audit-engineering-productivity

Run a single-session engineering productivity audit on the codebase

SKILL.md

Full skill instructions

Single-Session Engineering Productivity Audit

Purpose

Evaluates developer experience (DX), debugging capabilities, and offline support infrastructure. Identifies friction points in development workflows and provides actionable recommendations for improvement.

Execution Mode Selection

ConditionModeTime
Task tool available + no context pressureParallel~15 min
Task tool unavailableSequential~45 min
Context running low (<20% remaining)Sequential~45 min
User requests sequentialSequential~45 min

Section A: Parallel Architecture (3 Agents)

When to use: Task tool available, sufficient context budget

Agent 1: dx-golden-path-auditor

Focus Areas:

  • Developer onboarding friction
  • npm scripts completeness
  • Setup automation (doctor scripts, env validation)
  • Development workflow ergonomics

Files:

  • package.json (scripts section)
  • scripts/ directory
  • .env.example, .env.local
  • README.md, DEVELOPMENT.md

Checks:

# Count npm scripts
grep -c '"[^"]*":' package.json

# Check for setup/​doctor scripts
ls scripts/​*.js 2>/​dev/​null | grep -E 'setup|doctor|verify'

# Check for dev:offline script
grep -c "dev:offline" package.json

Agent 2: debugging-ergonomics-auditor

Focus Areas:

  • Structured logging vs console.log ratio
  • Correlation ID support for request tracing
  • Error message quality and user guidance
  • Sentry integration completeness

Files:

  • lib/​logger.ts
  • *.ts *.tsx files (console.log patterns)
  • functions/​src/​**/​*.ts (Cloud Functions logging)
  • app/​**/​error.tsx (error boundaries)

Checks:

# Console.log to logger ratio
echo "Console.log calls:"
grep -r "console.log" --include="*.ts" --include="*.tsx" app/ lib/ components/ | wc -l
echo "Logger calls:"
grep -r "logger\." --include="*.ts" --include="*.tsx" app/ lib/ components/ | wc -l

# Correlation ID patterns
grep -r "correlationId\|correlation-id\|x-request-id" --include="*.ts" .

Agent 3: offline-support-auditor

Focus Areas:

  • Firebase IndexedDB persistence configuration
  • Service worker presence and functionality
  • Offline write queue implementation
  • Network status indicators and user feedback

Files:

  • lib/​firebase.ts
  • public/​sw.js (if exists)
  • components/​status/​offline-indicator.tsx
  • lib/​offline-queue.ts (if exists)

Checks:

# Firebase persistence
grep -r "enableIndexedDbPersistence\|enablePersistence" lib/ app/

# Service worker
ls -la public/​sw.js 2>/​dev/​null || echo "No service worker"

# LocalStorage vs IndexedDB usage
grep -r "localStorage" --include="*.ts" --include="*.tsx" | wc -l
grep -r "indexedDB\|IDB\|Dexie" --include="*.ts" --include="*.tsx" | wc -l

Parallel Execution Command

Invoke all 3 agents in a SINGLE Task message:

Task 1: dx-golden-path-auditor agent - audit setup, scripts, onboarding Task 2:
debugging-ergonomics-auditor agent - audit logging, error handling Task 3:
offline-support-auditor agent - audit persistence, service workers

Section B: Sequential Fallback

When to use: Task tool unavailable, context pressure, or user request

Step 1: Golden Path & DX (10 min)

  1. Review package.json scripts section
  2. Check for setup/​doctor automation scripts
  3. Verify .env.example completeness
  4. Assess README setup instructions
  5. Identify missing "golden path" scripts

Step 2: Debugging Ergonomics (10 min)

  1. Calculate console.log vs logger ratio
  2. Search for correlation ID patterns
  3. Review error boundary implementations
  4. Check Sentry integration in logger
  5. Assess error message quality

Step 3: Offline Support (10 min)

  1. Check Firebase persistence configuration
  2. Look for service worker implementation
  3. Review offline indicator component
  4. Search for write queue patterns
  5. Assess localStorage vs IndexedDB usage

Output Requirements

Report File

Create docs/​audits/​comprehensive/​audit-engineering-productivity-report.md:

# Engineering Productivity Audit - {DATE}

## Baselines

| Metric                   | Value |
| ------------------------ | ----- |
| npm scripts count        | X     |
| Console.log calls        | X     |
| Logger calls             | X     |
| Structured logging ratio | X:Y   |
| LocalStorage usages      | X     |
| IndexedDB usage          | X     |
| Service worker           | Y/​N   |
| Firebase persistence     | Y/​N   |

## Findings Summary

| Severity | Count | Category       |
| -------- | ----- | -------------- |
| S0       | X     | -              |
| S1       | X     | Category names |
| S2       | X     | Category names |
| S3       | X     | Category names |

## Detailed Findings

### 1. Golden Path & DX

[Findings here]

### 2. Debugging Ergonomics

[Findings here]

### 3. Offline Support

[Findings here]

## Quick Wins (E0-E1)

[Prioritized list of low-effort fixes]

## Recommendations

### Immediate (E0-E1)

[List]

### Short-term (E2)

[List]

### Long-term (E3)

[List]

JSONL File

Create docs/​audits/​comprehensive/​audit-engineering-productivity-findings.jsonl:

CRITICAL - Use this exact schema:

{
  "category": "engineering-productivity",
  "title": "Short specific title",
  "fingerprint": "engineering-productivity::primary_file::identifier",
  "severity": "S0|S1|S2|S3",
  "effort": "E0|E1|E2|E3",
  "confidence": 75,
  "files": ["array/​of/​file/​paths.ts"],
  "why_it_matters": "1-3 sentences explaining impact",
  "suggested_fix": "Concrete remediation direction",
  "acceptance_tests": ["Array of verification steps"]
}

Category Definitions

CategoryDescription
GoldenPathSetup, scripts, onboarding, dev workflow
DebuggingLogging, tracing, error handling, messages
OfflinePersistence, service workers, queues, sync

Severity Scale

LevelNameDefinition
S0CriticalData loss risk, production breaking
S1HighSignificant dev friction, missing core
S2MediumMaintainability drag, inconsistency
S3LowPolish, minor improvements, nice-to-have

Effort Scale

LevelNameDefinition
E0MinutesQuick fix, trivial change
E1HoursSingle-session work
E2Days1-3 days or staged PR
E3WeeksMulti-PR, multi-week effort

Prior Audit Reference

Check docs/​audits/​single-session/​engineering-productivity/ for prior findings and track carryover issues.


TDMS Integration

After audit completion, findings should be ingested into MASTER_DEBT.jsonl:

node scripts/​debt/​intake-audit.js \
  docs/​audits/​comprehensive/​audit-engineering-productivity-findings.jsonl \
  --source "audit-engineering-productivity-$(date +%Y-%m-%d)"

Related Skills

  • /​audit-comprehensive - Run all 7 domain audits
  • /​audit-process - CI/​CD and automation audit (overlaps with DX)
  • /​audit-code - Code quality audit

Version History

VersionDateDescription
1.02026-02-03Initial skill creation

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
Any Summary logo
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View