with one click
gpd-error-patterns
View accumulated physics error patterns for this project
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
View accumulated physics error patterns for this project
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Add research phase to end of current milestone in roadmap
Capture idea or task as todo from current research conversation context
Prepare a paper for arXiv submission with validation and packaging
Audit research milestone completion against original research goals
Create a hypothesis branch for parallel investigation of an alternative approach
List pending research todos and select one to work on
| name | gpd-error-patterns |
| description | View accumulated physics error patterns for this project |
| argument-hint | [category] |
| context_mode | project-required |
| allowed-tools | ["read_file","shell","grep","glob"] |
<codex_runtime_notes> Codex shell compatibility:
gpd on PATH.GPD_ACTIVE_RUNTIME=codex uv run gpd ....
</codex_runtime_notes>Error patterns are recorded by the debugger after confirming root causes. They capture project-specific failure modes so that verifiers, planners, and executors can proactively check for recurrence.
Categories:
sign -- Sign errors (metric, integration by parts, Wick rotation)factor -- Missing factors (2, pi, symmetry factors, normalization)convention -- Convention mismatches between modules or phasesnumerical -- Numerical issues (convergence, precision, stability)approximation -- Approximation validity breakdownsboundary -- Boundary condition errorsgauge -- Gauge/frame artifactscombinatorial -- Symmetry factors, diagram counting
<execution_context>
Display accumulated physics error patterns from `.gpd/ERROR-PATTERNS.md`. Optionally filter by category. Error patterns are recorded by the debugger after confirming root causes, capturing project-specific failure modes so that verifiers, planners, and executors can proactively check for recurrence.<required_reading> Read all files referenced by the invoking prompt's execution_context before starting. </required_reading>
Check if the error patterns file exists:test -f .gpd/ERROR-PATTERNS.md && echo "EXISTS" || echo "MISSING"
If MISSING:
No error patterns recorded yet.
Error patterns are captured by $gpd-debug when root causes are confirmed.
They help the verifier and planner proactively check for recurring issues.
---
Start a debugging session with $gpd-debug to begin building the pattern database.
Exit.
Read `.gpd/ERROR-PATTERNS.md`.Parse the patterns table. Each row contains:
| Date | Phase | Category | Severity | Pattern | Root Cause | Prevention |
**If $ARGUMENTS provided (category filter):**Normalize the category argument to match known categories:
| Input | Matches |
|---|---|
sign | sign |
factor | factor |
convention | convention |
numerical | numerical |
approximation | approximation |
boundary | boundary |
gauge | gauge |
combinatorial | combinatorial |
If category not recognized:
Unknown category: "{input}"
Available categories: sign, factor, convention, numerical, approximation, boundary, gauge, combinatorial
Usage: $gpd-error-patterns [category]
Exit.
Filter the patterns table to show only rows matching the category.
**If category filter applied:**━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
GPD > ERROR PATTERNS: {CATEGORY}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
| Date | Phase | Severity | Pattern | Root Cause | Prevention |
|------|-------|----------|---------|------------|------------|
{filtered rows}
---
Showing {N} of {total} patterns. Run `$gpd-error-patterns` to see all.
**If no filter (show all):**
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
GPD > ERROR PATTERNS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
## Summary
| Category | Count | Most Recent |
|----------|-------|-------------|
| sign | {N} | {date} |
| factor | {N} | {date} |
| convention | {N} | {date} |
{... for each category with entries}
## All Patterns
| Date | Phase | Category | Severity | Pattern | Root Cause | Prevention |
|------|-------|----------|----------|---------|------------|------------|
{all rows}
---
{total} patterns recorded. Filter by category: `$gpd-error-patterns sign`
Present available actions:
───────────────────────────────────────────────────────────────
**Also available:**
- `$gpd-error-patterns <category>` -- filter by category
- `$gpd-debug` -- start a debugging session (records new patterns)
- `$gpd-verify-work` -- run verification (checks against known patterns)
- `gpd pattern search "<keyword>"` -- search global cross-project pattern library
- `gpd pattern list` -- list all global patterns (from all projects)
───────────────────────────────────────────────────────────────
<success_criteria>
</success_criteria>
@.gpd/ERROR-PATTERNS.md </execution_context>
Pre-flight check:
if [ ! -d ".gpd" ]; then
echo "Error: No GPD project found. Run $gpd-new-project first."
exit 1
fi
```bash
test -f .gpd/ERROR-PATTERNS.md && echo "EXISTS" || echo "MISSING"
```
If MISSING:
No error patterns recorded yet.
Error patterns are captured by $gpd-debug when root causes are confirmed.
They help the verifier and planner proactively check for recurring issues.
---
Start a debugging session with $gpd-debug to begin building the pattern database.
Exit.
Read `.gpd/ERROR-PATTERNS.md`.If $ARGUMENTS provided (category filter):
Filter the patterns table to show only rows matching the category. Display:
## Error Patterns: {category}
{filtered table rows}
---
Showing {N} of {total} patterns. Run `$gpd-error-patterns` to see all.
If no arguments (show all):
Display the full contents formatted as:
## Project Error Patterns
{full table}
---
{total} patterns recorded. Filter by category: `$gpd-error-patterns sign`
**Also show relevant patterns from the global cross-project library.**
/Users/charlie/.gpd/venv/bin/python -m gpd.runtime_cli --runtime codex --config-dir ./.codex --install-scope local pattern init 2>/dev/null || true
DOMAIN=$(grep -m1 "domain:" .gpd/PROJECT.md 2>/dev/null | sed 's/.*: *//' || echo "")
GLOBAL=$(/Users/charlie/.gpd/venv/bin/python -m gpd.runtime_cli --runtime codex --config-dir ./.codex --install-scope local --raw pattern list ${DOMAIN:+--domain "$DOMAIN"} 2>/dev/null)
If global patterns exist (count > 0), append:
## Cross-Project Patterns
{pattern list from global library, sorted by severity}
---
Global library: {count} patterns. Search: `gpd pattern search "keyword"`