Agent SkillsA-EVO-Lab/a-evolve › debug-and-fix

debug-and-fix

GitHub

提供构建修复、二进制检查、结构化文件生成及约束求解策略,指导完整代码编写与测试。

seed_workspaces/terminal/skills/debug-and-fix/SKILL.md A-EVO-Lab/a-evolve

Trigger Scenarios

C/C++编译失败或API不兼容 需要调试运行时错误或二进制数据 需生成ICS/JSON等结构化文件 解决调度或约束满足问题

Install

npx skills add A-EVO-Lab/a-evolve --skill debug-and-fix -g -y
More Options

Non-standard path

npx skills add https://github.com/A-EVO-Lab/a-evolve/tree/main/seed_workspaces/terminal/skills/debug-and-fix -g -y

Use without installing

npx skills use A-EVO-Lab/a-evolve@debug-and-fix

指定 Agent (Claude Code)

npx skills add A-EVO-Lab/a-evolve --skill debug-and-fix -a claude-code -g -y

安装 repo 全部 skill

npx skills add A-EVO-Lab/a-evolve --all -g -y

预览 repo 内 skill

npx skills add A-EVO-Lab/a-evolve --list

SKILL.md

Frontmatter
{
    "name": "debug-and-fix",
    "description": "Strategies for debugging build failures, runtime errors, writing complete output files (ICS\/JSON\/config), and constraint satisfaction tasks."
}

Debug and Fix Skill

1. C/C++ build fixes

apt-get update && apt-get install -y build-essential pkg-config

Protobuf API fix

find . -name "*.cc" -o -name "*.cpp" | xargs sed -i \
  's/SetTotalBytesLimit(\([^,]*\),[^)]*)/SetTotalBytesLimit(\1)/g'

2. Binary inspection without xxd

od -A x -t x1z -v file.dat | head -100

3. Writing complete structured output files

Use Python to write ICS/JSON/XML — avoids heredoc truncation:

from datetime import datetime
lines = ['BEGIN:VCALENDAR','VERSION:2.0','BEGIN:VEVENT',
    f'DTSTART:{start:%Y%m%dT%H%M%S}',
    f'DTEND:{end:%Y%m%dT%H%M%S}',
    f'SUMMARY:{title}',
    'END:VEVENT','END:VCALENDAR']
with open('/app/out.ics','w') as f:
    f.write('\r\n'.join(lines)+'\r\n')

4. Scheduling / constraint satisfaction

  • Parse ALL constraints before attempting solutions
  • Write a systematic solver to a .py file (enumerate candidates, check all constraints)
  • Verify solution satisfies EVERY constraint before writing output
# Write complete solver to file to avoid truncation:
with open('/app/solver.py','w') as f:
    f.write('''...all imports, logic, output...''')
# Then run: python3 /app/solver.py

5. Implementation code

  • Write complete files — don't build up fragments
  • For complex logic, use Python to write files programmatically
  • Test immediately after writing
  • If tests fail, rewrite the COMPLETE file

Version History

  • c9d4789 Current 2026-07-25 07:28

Same Skill Collection

artifacts/tb2_clawcode_opus46/skills/build-compiled-extensions/SKILL.md
artifacts/tb2_clawcode_opus46/skills/debug-and-fix/SKILL.md
artifacts/tb2_clawcode_opus46/skills/environment-discovery/SKILL.md
artifacts/tb2_clawcode_opus46/skills/python-data-analysis/SKILL.md
artifacts/tb2_clawcode_opus46/skills/scientific-computing/SKILL.md
artifacts/tb2_clawcode_opus46/skills/self-verification/SKILL.md
artifacts/tb2_clawcode_opus46/skills/systematic-exploration/SKILL.md
seed_workspaces/mcp_mh/.claude/skills/harness-optimizer/SKILL.md
seed_workspaces/osworld/skills/application-shortcuts/SKILL.md
seed_workspaces/osworld/skills/gui-click-over-keyboard/SKILL.md
seed_workspaces/osworld/skills/gui-navigation/SKILL.md
seed_workspaces/osworld/skills/screenshot-analysis/SKILL.md
seed_workspaces/osworld/skills/self-verification/SKILL.md
seed_workspaces/osworld/skills/web-access-strategies/SKILL.md
seed_workspaces/skillbench/skills/data-formats/SKILL.md
seed_workspaces/skillbench/skills/environment-discovery/SKILL.md
seed_workspaces/skillbench/skills/python-packages/SKILL.md
seed_workspaces/skillbench/skills/skill-usage/SKILL.md
seed_workspaces/terminal/skills/build-compiled-extensions/SKILL.md
seed_workspaces/terminal/skills/environment-discovery/SKILL.md
seed_workspaces/terminal/skills/scientific-computing/SKILL.md
seed_workspaces/terminal/skills/self-verification/SKILL.md

Metadata

Files
0
Version
88190c6
Hash
8fe12f2c
Indexed
2026-07-25 07:28

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 14:38
浙ICP备14020137号-1 $방문자$