debug-workflow
Global Debugging agent skill for AG
- License 许可
- MIT
- 所属仓库
- agisota/old-one
- 最近更新
- 2026-07-04
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- debug-workflow
- triggers
- [ "deuug workflow" ]
- description
- Global Debugging agent skill for AG
03 SKILL.md 正文
The Five Phases
You MUST complete each phase before proceeding to the next.
Phase 0: Start Debug Session Logging
FIRST: Initialize structured logging for retrospective analysis
If .debug-logs/helpers/start-debug-session.ps1 exists in the project:
# Start a debug session (creates hourly log folder)
. .debug-logs/helpers/start-debug-session.ps1 -Issue "Brief description" -Revision "revision-name"
# This exports helper functions:
# - Log-Command "command" → Log commands to commands-run.txt
# - Log-Error "error message" → Log errors to errors-found.txt
# - Log-Fix "solution" -Commit "sha" → Log fixes to fixes-applied.txt
# - Fetch-CloudLogs -Revision "..." → Fetch and log Cloud Run logs
# - End-DebugSession -Resolution "" → Close session with summary
Use throughout debugging:
- Log errors as you find them:
Log-Error "SyntaxError: Unexpected token '}'" - Log commands:
Log-Command "gcloud logging read ..." - Log fixes:
Log-Fix "Removed extra closing brace" -Commit "c6b8ebd" - End session:
End-DebugSession -Resolution "Fixed syntax error in iracingAuth.js"
Benefits:
- Automatic timestamped logs in
.debug-logs/sessions/YYYY-MM-DD-HH/ - Retrospective analysis: "What pattern caused this?"
- Time-to-resolution tracking
- Reusable solutions database
Phase 1: Root Cause Investigation
BEFORE attempting ANY fix:
Note
Skill content truncated for token efficiency. Full version available in the source repository.
04 同仓库更多 Skills
zoom-out
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.
zeroize-audit
Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C/C++/Rust code handling secrets, keys, passwords, or other sensitive data.
yeet
Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).
yara-rule-authoring
Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.
x-twitter-growth
X/Twitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X/Twitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.
x-api
X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.