claude/skills/methodology/SKILL.md
# Methodology Reference Consolidated methodology, frameworks, and detailed process guidance relocated from CLAUDE.md for space efficiency. ## Visual Communication Requirements Even outside Quarto documents: - Use Mermaid diagrams for reasoning flows - Format tables (never raw df.head()) - Use LaTeX for mathematical notation ($\alpha = 0.15$) - Show charts for quantitative analysis - Never dump raw data or print statements - Never write plain text math ("alpha = 0.15") ## Phased Execution Sys
npx skillsauth add lanej/dotfiles claude/skills/methodologyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Consolidated methodology, frameworks, and detailed process guidance relocated from CLAUDE.md for space efficiency.
Even outside Quarto documents:
Claude agents use continuous phased processing for complex multi-step work.
Continuous until blocker:
Genuine blockers (stop and ask):
NOT blockers (continue):
Start with high-level phases (3-5 major tasks), break down as complexity emerges:
Initial: 1. Implement auth system 2. Add tests 3. Update docs
Adaptive breakdown:
1. Implement auth system
1.1 Create User model with bcrypt hashing
1.2 Add JWT token generation
1.3 Implement middleware for protected routes
1.4 Add session management
2. Add tests
2.1 Unit tests for auth functions
2.2 Integration tests for login flow
For multi-workstream projects, Build agent may suggest orchestration:
@orchestrator <description> → manually invokeOrchestrator behavior: Breaks into parallel workstreams, delegates to subagents, tracks dependencies, reports consolidated status.
CRITICAL: Recognize when tools require human interaction and don't try to automate them.
EDITOR=cat or EDITOR=true to bypass editorsecho "y" | command to bypass confirmations--message)CRITICAL: Any matplotlib figure task — iteration, audit, review, quality check — MUST render and visually inspect the output image. Code-only review is incomplete.
Principle: Visual defects (clipped titles, illegible text, wrong contrast, squished panels) are invisible in code and obvious in rendered output.
NAVY not SLATE)plt.savefig() must run before plt.close() — calling savefig after close saves blank PNGUse just dev-fig NAME → Read PNG from {project-dir}_files/figure-pdf/{LABEL}-output-1.png. Path uses project root directory name (not QMD stem). Do NOT use just preview-fig / Playwright.
~/src/analysis-doc/docs/AGENTS.md is source of truth for full checklist, palette contrast table, dimension rules, __main__ save pattern.
Commands:
/reflection — Analyze session and suggest CLAUDE.md improvements (interactive)/reflection-harder — Comprehensive session analysis with learning captureImplementation: Command at ~/.files/claude/commands/reflection-harder.md. On-demand only; no tmux status bar integration.
WORKLOG.md or CHANGELOG.mdpkill -f <process-name>uv add hangs building from source (>60 seconds): (1) system Python, (2) PyPI, (3) CLI tool insteadDesign the feedback loop before writing code. Before the first line of implementation, identify what "verifiably done" looks like: which test suite runs, which lint/type-check passes, which grep/diff confirms the output is correct. The verification path is part of the design, not an afterthought.
Harness verification (false-red / false-green discipline). When writing tests in new test files, new packages, or any setup where harness wiring is uncertain:
This applies to new harnesses, not to every test in an established suite.
Return only when self-validated. Do not surface results, ask for human confirmation, or request feedback on something you can verify yourself. Run the full suite, confirm the diff, check the output — then return with evidence of completion, not a question.
Flaky tests are serious bugs — fix immediately.
Python/pytest strongly preferred:
uv run pytest or uv run pytest path/to/test_file.pyuv run pytest --cov=scripts --cov-report=html --cov-report=term-missingdata-ai
Delegate research and context-gathering tasks to a sub-agent to protect the primary context window. Use when the user asks to "research X", "look into X", "find out about X", "gather context on X", or any investigative framing where answering requires 2+ searches or multiple sources. Also use proactively before starting substantive work when prior context is unknown. Never run research inline — always delegate.
documentation
--- name: qmd-math description: Math notation conventions for Quarto/EPQ documents rendered via lualatex. Use when: writing or adding a formula, equation, or mathematical expression to a .qmd file; asked about display math, inline math, or LaTeX notation in a QMD/Quarto context; defining a where-clause or variable definitions for an equation; converting prose variable descriptions into structured math notation; fixing math that renders badly in a PDF; using \lvert, \begin{aligned}, \tfrac, \text
development
Trim a prose document (README, design doc, blog post, notes) for readability by cutting redundancy, filler, and dead weight in the author's own words. Invoke with /trim [file path], or /trim alone to be prompted for a file. Not for source code, data files, or summarization.
business
Query and analyze Josh Lane's org headcount from the staffing DuckDB at ~/workspace/areas/staffing/staffing.duckdb. Use when asked about headcount counts, org structure, direct reports, team breakdown, hiring/attrition trends, international employees, salary/pay grade distribution, offboarding lag, or any question about people in Josh's org. Triggers on questions about how many people, who reports to whom, headcount by team/country/level, who joined or left, org size, staffing, headcount trend.