train

GitHub

从文档或风格指南中提取可执行的团队规范、规则和术语,分类后保存为训练数据,用于对齐AI队友的行为标准。

.opencode/skills/train/SKILL.md AltimateAI/altimate-code

Trigger Scenarios

用户提供代码规范文档 用户要求根据文档训练AI

Install

npx skills add AltimateAI/altimate-code --skill train -g -y
More Options

Non-standard path

npx skills add https://github.com/AltimateAI/altimate-code/tree/main/.opencode/skills/train -g -y

Use without installing

npx skills use AltimateAI/altimate-code@train

指定 Agent (Claude Code)

npx skills add AltimateAI/altimate-code --skill train -a claude-code -g -y

安装 repo 全部 skill

npx skills add AltimateAI/altimate-code --all -g -y

预览 repo 内 skill

npx skills add AltimateAI/altimate-code --list

SKILL.md

Frontmatter
{
    "name": "train",
    "description": "Train your AI teammate on team standards from a document or style guide"
}

Train

Purpose

Learn team standards and conventions from a document (style guide, review checklist, coding standards, etc.). Extracts actionable rules and saves them as training.

Workflow

  1. Get the document: The user provides either:

    • A file reference: @docs/sql-style-guide.md
    • A URL: The full URL to fetch (use webfetch tool)
    • Inline text: Pasted directly in the chat
  2. Read and analyze: Parse the document and extract:

    • Specific, enforceable rules (naming, formatting, prohibited patterns)
    • Review criteria and checklists
    • Glossary terms and definitions
    • Architectural standards
  3. Categorize: Group findings by training kind:

    • rule — Specific do/don't rules (e.g., "Never use SELECT *")
    • standard — Broader conventions (e.g., "SQL style guide compliance")
    • glossary — Term definitions (e.g., "ARR = Annual Recurring Revenue")
  4. Present summary: Show the user what you extracted:

    • Number of rules, standards, and glossary terms found
    • Preview of each item
    • Ask for confirmation before saving
  5. Save via training_save: Save each item using the training_save tool. For documents with many rules, consolidate related rules into logical groups (e.g., "sql-naming-rules" with 5 rules, rather than 5 separate entries).

Important Guidelines

  • Only extract ACTIONABLE items. Skip vague guidance like "write clean code."
  • Consolidate related rules into single training entries to avoid clutter.
  • Preserve the original wording when it's specific and clear.
  • If the document is too large, focus on the most impactful rules.
  • Always use scope: project unless the user specifies global.
  • Do NOT make any extra LLM calls — analysis happens in the normal conversation flow.

Usage Examples

/train @docs/sql-style-guide.md
/train https://wiki.company.com/data-team/review-checklist
/train   (then paste content inline)

Version History

  • 8c9a9a8 Current 2026-07-25 06:35

Same Skill Collection

.opencode/skills/altimate-setup/SKILL.md
.opencode/skills/cost-report/SKILL.md
.opencode/skills/data-parity/SKILL.md
.opencode/skills/dbt-analyze/SKILL.md
.opencode/skills/dbt-docs/SKILL.md
.opencode/skills/dbt-pr-review/SKILL.md
.opencode/skills/dbt-test/SKILL.md
.opencode/skills/dbt-troubleshoot/SKILL.md
.opencode/skills/dbt-unit-tests/SKILL.md
.opencode/skills/lineage-diff/SKILL.md
.opencode/skills/pii-audit/SKILL.md
.opencode/skills/query-optimize/SKILL.md
.opencode/skills/schema-migration/SKILL.md
.opencode/skills/sql-review/SKILL.md
.opencode/skills/sql-translate/SKILL.md
.opencode/skills/teach/SKILL.md
.opencode/skills/training-status/SKILL.md
.opencode/skills/data-viz/SKILL.md
.opencode/skills/dbt-develop/SKILL.md
.opencode/skills/dbt-schema-verify/SKILL.md

Metadata

Files
0
Version
e27aeac
Hash
9e4073de
Indexed
2026-07-25 06:35

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 08:50
浙ICP备14020137号-1 $mapa de visitantes$