legion-docs

star 12

Use when creating, updating, or validating `.legion` task documents, or when deciding whether information belongs in `plan.md`, `log.md`, `tasks.md`, or task-level docs.

Thrimbda By Thrimbda schedule Updated 6/15/2026

name: legion-docs description: Use when creating, updating, or validating .legion task documents, or when deciding whether information belongs in plan.md, log.md, tasks.md, or task-level docs.

legion-docs

Overview

.legion/tasks/** 是 raw evidence,不是跨任务 wiki。核心约束是:plan.md 管契约,log.md 管过程,tasks.md 管状态,docs/*.md 管设计与验证产物;跨任务可复用知识统一进入 .legion/wiki/**,不再单列 playbook。

输出语言与文档产物

  • 默认用中文回答 .legion 文档落点、密度和质量判断。
  • 由本 skill 创建、改写或校验的 .legion/tasks/** 文档产物默认使用中文,包括 plan.mdlog.mdtasks.mddocs/*.md
  • 文件名、路径、命令、测试输出、错误原文、schema 字段和外部平台术语保持原文,必要时用中文解释。

When to Use

  • 需要新建或改写 .legion/tasks/** 文档
  • 需要判断某条信息该写进 plan.mdlog.mdtasks.md 还是 docs/*.md
  • 需要检查 log.md 命名、文档密度、handoff 质量

不要用在风险分级、design gate、subagent 调度;那些属于 legion-workflow

Decision Flow

flowchart TD
    A[New information to persist] --> B{Stable contract, acceptance, scope, risk?}
    B -- yes --> P[plan.md]
    B -- no --> C{Task-local progress, decision, blocker, handoff?}
    C -- yes --> L[log.md]
    C -- no --> D{Current phase, current task, checklist state?}
    D -- yes --> T[tasks.md]
    D -- no --> E{Design, review, test, PR artifact?}
    E -- yes --> DOC[<taskRoot>/docs/*.md]
    E -- no --> F{Reusable across tasks?}
    F -- yes --> W[.legion/wiki/decisions.md / patterns.md / maintenance.md]
    F -- no --> X[Do not persist yet / re-evaluate]

Quick Reference

  • plan.md:面向 tech lead 的任务契约;描述了这个任务的概要设计,不涉及具体实现细节但是要清晰展示技术决策和反响,这将是本任务最重要的 spec
  • log.md:append-only 过程日志 / 决策 / handoff
  • tasks.md:状态板;只保留阶段、当前检查项、完成状态
  • <taskRoot>/docs/*.md:RFC、review、test-report、walkthrough、pr-body
Information type Best home
最终的技术决策、验收标准、范围、风险边界 plan.md
本轮决策、今日进展、阻塞、handoff log.md
当前阶段、当前检查项、checklist 状态 tasks.md
rollback 细节、测试输出、review 证据、PR 摘要 docs/*.md
跨任务复用规则 / 当前结论 .legion/wiki/decisions.md / patterns.md

Within docs/*.md:

  • rollback / migration / alternatives / verification design → docs/rfc.md 或附录
  • failing command output / executed command / pass-fail summary → docs/test-report.md
  • reviewer-facing delivery summary → docs/report-walkthrough.md
  • short PR-ready summary → docs/pr-body.md

Common Mistakes

  • log.md 写成背景资料袋
  • plan.md 扩写成 mini-RFC
  • 把进度、设计、验证证据混写到同一层
  • 把 rollback 细节或测试输出塞进 log.md,而不是写入 docs/*.md
  • 把 task-local 决策直接提升进 wiki,导致跨任务知识被污染

References

Install via CLI
npx skills add https://github.com/Thrimbda/legion-mind --skill legion-docs
Repository Details
star Stars 12
call_split Forks 1
navigation Branch main
article Path SKILL.md
More from Creator