بنقرة واحدة
audit-engineering-productivity
Run a single-session engineering productivity audit on the codebase
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Run a single-session engineering productivity audit on the codebase
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Run a single-session AI optimization audit on the codebase
Run a single-session code review audit on the codebase
Run a comprehensive enhancement audit across the entire project - code, product, UX, content, workflows, infrastructure, external services, and meta-tooling.
Run a single-session performance audit on the codebase
Run a comprehensive multi-stage automation audit with parallel agents
Run a single-session refactoring audit on the codebase
| name | audit-engineering-productivity |
| description | Run a single-session engineering productivity audit on the codebase |
| supports_parallel | true |
| fallback_available | true |
| estimated_time_parallel | 15 min |
| estimated_time_sequential | 45 min |
Evaluates developer experience (DX), debugging capabilities, and offline support infrastructure. Identifies friction points in development workflows and provides actionable recommendations for improvement.
| Condition | Mode | Time |
|---|---|---|
| Task tool available + no context pressure | Parallel | ~15 min |
| Task tool unavailable | Sequential | ~45 min |
| Context running low (<20% remaining) | Sequential | ~45 min |
| User requests sequential | Sequential | ~45 min |
When to use: Task tool available, sufficient context budget
# Read false positives to avoid re-flagging known issues
cat docs/technical-debt/FALSE_POSITIVES.jsonl 2>/dev/null
Focus Areas:
Files:
package.json (scripts section)scripts/ directory.env.example, .env.localREADME.md, DEVELOPMENT.mdChecks:
# 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
Focus Areas:
Files:
lib/logger.ts*.ts *.tsx files (console.log patterns)src/**/*.ts (backend/service logging)src/**/error.tsx (error boundaries)Checks:
# Console.log to logger ratio
echo "Console.log calls:"
grep -r "console.log" --include="*.ts" --include="*.tsx" src/ lib/ components/ | wc -l
echo "Logger calls:"
grep -r "logger\." --include="*.ts" --include="*.tsx" src/ lib/ components/ | wc -l
# Correlation ID patterns
grep -r "correlationId\|correlation-id\|x-request-id" --include="*.ts" .
Focus Areas:
Files:
lib/persistence.ts or equivalent (if exists)public/sw.js (if exists)components/status/offline-indicator.tsx (if exists)lib/offline-queue.ts (if exists)Checks:
# Offline persistence patterns
grep -r "enableIndexedDbPersistence\|enablePersistence\|IndexedDB\|idb\|Dexie" lib/ src/ 2>/dev/null || echo "No offline persistence found"
# 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
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
Each agent prompt MUST end with:
CRITICAL RETURN PROTOCOL:
- Write findings to the specified output file using Write tool or Bash
- Return ONLY: `COMPLETE: [agent-id] wrote N findings to [output-path]`
- Do NOT return full findings content — orchestrator checks completion via file
Dependency constraints: All 3 agents are independent -- no ordering required. Each audits a separate domain and writes to separate output sections.
When to use: Task tool unavailable, context pressure, or user request
package.json scripts section.env.example completenessCreate docs/audits/single-session/engineering-productivity/audit-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 |
| Offline 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]
Create
docs/audits/single-session/engineering-productivity/audit-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"],
"evidence": ["code snippet", "grep output", "measurement data"]
}
| Category | Description |
|---|---|
| GoldenPath | Setup, scripts, onboarding, dev workflow |
| Debugging | Logging, tracing, error handling, messages |
| Offline | Persistence, service workers, queues, sync |
| Level | Name | Definition |
|---|---|---|
| S0 | Critical | Data loss risk, production breaking |
| S1 | High | Significant dev friction, missing core |
| S2 | Medium | Maintainability drag, inconsistency |
| S3 | Low | Polish, minor improvements, nice-to-have |
| Level | Name | Definition |
|---|---|---|
| E0 | Minutes | Quick fix, trivial change |
| E1 | Hours | Single-session work |
| E2 | Days | 1-3 days or staged PR |
| E3 | Weeks | Multi-PR, multi-week effort |
Check docs/audits/single-session/engineering-productivity/ for prior findings
and track carryover issues.
Read
CANON/templates/AUDIT_TEMPLATE.mdfor: Evidence Requirements, Dual-Pass Verification, Cross-Reference Validation, JSONL Output Format, Context Recovery, Post-Audit Validation, MASTER_DEBT Cross-Reference, Interactive Review, TDMS Intake & Commit, Documentation References, Agent Return Protocol, and Honesty Guardrails.
Skill-specific TDMS intake:
node scripts/debt/intake-audit.js \
docs/audits/single-session/engineering-productivity/audit-findings.jsonl \
--source "audit-engineering-productivity-$(date +%Y-%m-%d)"
/audit-engineering-productivity/audit-comprehensive (Stage 2)/audit-code instead/audit-process instead/audit-comprehensive/audit-comprehensive - Run all domain audits/audit-process - CI/CD and automation audit (overlaps with DX)/audit-code - Code quality audit| Version | Date | Description |
|---|---|---|
| 1.1 | 2026-02-23 | Add mandatory MASTER_DEBT cross-reference step before interactive review |
| 1.0 | 2026-02-03 | Initial skill creation |