بنقرة واحدة
debug-issue
Investigate a user-submitted issue with timeline and debug data
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Investigate a user-submitted issue with timeline and debug data
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Create a pull request from dev to main with proper formatting and draft release
Create a pull request from dev to main with proper formatting and draft release
Create a draft GitHub release with proper versioning and release notes
Create a well-structured task with smart field suggestions; GitHub Issues by default, Linear only for retained internal categories
Create a well-structured task with smart field suggestions; GitHub Issues by default, Linear only for retained internal categories
Start an iOS/macOS Apple app development or web-parity audit session — loads design rules, maps web sources to native code, supports Linux static audits, and verifies with Xcode when available
| name | debug-issue |
| description | Investigate a user-submitted issue with timeline and debug data |
| user-invocable | true |
| argument-hint | <issue-id> |
You are investigating a user-submitted issue. The issue ID was provided as an argument.
The reported issue database is the source of truth. Do not start from Linear or GitHub unless the issue note links there.
python3 scripts/issues.py show $ARGS --env prod
python3 scripts/issues.py findings $ARGS --env prod
If the issue is known to be from dev, use --env dev. The findings command creates a local-only, gitignored note at docs/findings/issues/<env>/<YYYY>/...md. Update this note with the first anomaly, root-cause hypothesis, related reports, attempts, tests, and final status before changing product code. Do not store reported-issue findings elsewhere.
Use these workflow helpers before raw debug commands:
python3 scripts/issues.py list --env prod --limit 20
python3 scripts/issues.py cluster --env prod --limit 100
python3 scripts/issues.py timeline $ARGS --env prod --compact
python3 scripts/issues.py mark $ARGS --env prod --status investigating
issue-forensics subagentLaunch the issue-forensics agent with this prompt:
Investigate issue
$ARGS. Usescripts/issues.py show,scripts/issues.py timeline, and the created findings note as the workflow entry points. Run rawdebug.py issueonly when the wrapper lacks a needed low-level view. Follow any trace IDs, identify the first anomaly, and return the structured JSON + narrative. Use--env prodwhen this is a prod issue.
The agent runs all debug.py commands, correlates browser↔backend events, git-blames suspects, and returns a compact report with first_anomaly, root_cause_hypothesis, suspect_files[], reproduction_steps, and related_recent_commits.
If the symptom looks like encryption / decryption / chat sync: after issue-forensics returns, also launch encryption-flow-tracer with the first anomaly message as the symptom — it will pinpoint the broken invariant in the E2EE/sync data flow.
Do NOT run raw debug.py commands yourself unless scripts/issues.py cannot expose the needed low-level view — raw timelines flood main context. Trust the agents' compact reports.
Using the agent's suspect_files and narrative:
2 tries max with the same approach. If the agent's first hypothesis fails, re-launch it with your new context ("the fix at X did not resolve the issue because Y — look for a different root cause"). On the 3rd attempt, STOP and load sessions.py context --doc debugging.
Update the findings note and mark it verified:
python3 scripts/issues.py mark $ARGS --env prod --status verified
Only delete the issue report after the user confirms the fix is verified:
docker exec api python /app/backend/scripts/debug.py issue $ARGS --delete --yes