agentleFS
hiyougahiyouga/LLaMA-Factory/.claude/skills/llamafactory-v1-docs/SKILL.md

llamafactory-v1-docs

Skill76k starsChanged 48 days agoApache-2.0View on GitHub

Write, review, update, build, or preview LlamaFactory v1 documentation. Use for docs work grounded in src/llamafactory/v1; not for running model training.

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat this branch's v1 implementation as the source of truth.

    line 11
  2. Distinctive:

    Keep content ownership clear: feature guides explain usage.

    line 18
  3. Distinctive:

    Use tables for factual comparisons.

    line 19
  4. Very specific:

    Use one H1 per page, meaningful headings, language-tagged code blocks, relative links, and the appropriate toctree entry for new pages.

    line 22
  5. Distinctive:

    Keep model IDs, adapter paths, model directories, and filenames consistent across training, inference, and export examples.

    line 28
  6. Distinctive:

    Document confirmed behavior and limitations.

    line 30
  7. Very specific:

    Use an existing Python environment with docs/requirements.txt installed.

    line 34
  8. Distinctive:

    When a preview is requested, reuse a server serving this output or start one on an available local port:

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

LlamaFactory v1 Documentation

Scope

  • Work in the repository containing both docs/ and src/llamafactory/v1/. Check the branch and existing changes first.
  • Treat this branch's v1 implementation as the source of truth; do not infer behavior from v0 or upstream code.
  • Maintain Chinese and English counterparts for pages touched by the task unless the user limits the language. Align relative page paths, structure, technical meaning, examples, and navigation; translate prose naturally while preserving code identifiers and commands. Report any remaining language gaps.
  • Preserve unrelated edits and explicitly deferred issues. Review-only requests stay read-only; build-only requests do not rewrite content.

Writing

  • Explain features directly: behavior, configuration, execution, and constraints. Avoid assumed user goals, selection advice, rhetorical questions, and “use case” columns unless requested.
  • Keep content ownership clear: feature guides explain usage; configuration pages define fields and semantics; developer guides explain internals. Link between them instead of repeating full sections.
  • Use tables for factual comparisons. Keep examples short and distinguish complete configurations from partial snippets without repetitive setup reminders.
  • Explain defaults, omitted versus explicit values, precedence, units, and conditional behavior—not just parameter names.
  • In developer guides, show responsibilities, inputs, outputs, state ownership, and call order. Use a small example or tensor shapes when abstractions need clarification.
  • Use one H1 per page, meaningful headings, language-tagged code blocks, relative links, and the appropriate toctree entry for new pages.

Source and Examples

  • Trace relevant configuration parsing, plugin registration, and call sites. A declared field or interface alone does not establish support.
  • Distinguish related concepts, such as quantization plugins, backends, bit widths, and formats. Verify current support rather than hardcoding assumptions into this skill.
  • Keep model IDs, adapter paths, model directories, and filenames consistent across training, inference, and export examples. Match each downstream input to the preceding output.
  • Parse changed YAML examples and check their placement and composition. Examples described as runnable need the required imports, interfaces, and registration.
  • Document confirmed behavior and limitations. Report unresolved implementation questions separately; do not insert speculation or conversation history into public documentation.

Build and Preview

Use an existing Python environment with docs/requirements.txt installed. Build both languages from the repository root, or just the language explicitly requested:

for doc_language in zh en; do
  env LC_ALL=C LANG=C python3 -m sphinx -b html -n -W --keep-going "docs/$doc_language" "docs/_build/html/$doc_language" || exit 1
done

Review the diff and build diagnostics; check changed pages, links, anchors, and table/code rendering. Fix issues introduced by authorized edits and rebuild. For review-only or build-only requests, report existing failures without expanding the scope. Do not disable strict checks or run model training merely to validate documentation.

When a preview is requested, reuse a server serving this output or start one on an available local port:

python3 -m http.server 8765 --bind 127.0.0.1 --directory docs/_build/html

Open the relevant pages under /zh/ and /en/ on the preview server and verify the served content and language-switch links. Do not stop unrelated servers or publish the site automatically.

Report the changed files and completed checks briefly; include a preview link if available. Distinguish a successful documentation build from validated model execution.

Download now (ZIP)

Trending

Quiet since August.about the whole repository

Dec 2025: 3 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 3 mentionsMay 2026: 2 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 2 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the hiyouga/LLaMA-Factory repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about hiyouga/LLaMA-Factory

The biggest 5 of 93 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 93

Talked about on GitHub, YouTube, Bluesky, the web and Hacker News (93 times).

On GitHub · 50

45 more on GitHub

On YouTube · 22

17 more on YouTube

On Bluesky · 15

10 more on Bluesky

On the web · 4

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. hiyouga/LlamaFactory★ 76k100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.