fixlog-writer
Standardizes FixLog writing and handles Chrome persistence.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Operational Instructions
Triggers
- At the end of every workflow involving modifications (
tech_rag,refactor). - When a technical intervention needs to be tracked (Step 6 Persistence).
Inputs
-
Prefix: (from
PROJECT_AGENT_CONFIG.md) Project prefix. -
ProjectName: (from
PROJECT_AGENT_CONFIG.md) Project name. -
Log Data: JSON containing
id,document(description), andmetadatas(project, type, date, files, tests, result).
CLI Parameters (write_log.py)
uv run .agent/skills/fixlog_writer/scripts/write_log.py \
--project "ProjectName" \
--prefix "PREFIX" \
--desc "Description of the fix" \
--files "file1.py,file2.js" \
--test "Test description" \
--result "pass" # ⚠️ VALID VALUES: "pass" or "fail" (NOT "success"!)
Critical Parameter Values:
-
--result: ONLY accepts"pass"or"fail"(enforced by argparse choices) -
--files: Comma-separated list of file paths (will be split into array)
Steps
- Prepare Data: Collect intervention data.
- Format JSON: Create a JSON structure compatible with Chroma.
-
Persist (Dual Write):
- Write to
.agent/fix_logs/<ID>.json. - Upsert to ChromaDB collection
fix_logs.
- Write to
- Verification: Confirm file exists and Chroma entry is searchable.
Usage Example
uv run .agent/skills/fixlog_writer/scripts/write_log.py \
--project "Antigravity" \
--prefix "AG" \
--desc "Fixed critical bug in authentication flow" \
--files "src/auth.py,tests/test_auth.py" \
--test "pytest tests/test_auth.py - all passed" \
--result "pass"
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-03-03
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!