agentleFS
spiriMirrorspiriMirror/libuipc/.cursor/skills/document/SKILL.md

document

Skill351 starsChanged 3 months agoApache-2.0View on GitHub

Documentation style guide and rules for creating documentation

54 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use develop, scope and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • hong9LeeSkill

    develop

    빌드, 아키텍처, git 관련 작업 시 OMS MSA 공통 인프라 규칙을 적용한다. 기술 스택, 빌드 명령, 헥사고날 아키텍처 구조, git 워크플로우, AI Context 동기화 규칙을 다룬다. 코드 작성 컨벤션은 /convention, 테스트 컨벤션은 /test-guide 스킬을 참조.

    Also in 5 projects that use this

  • YuriNachosSkill

    scope

    Configure claude-scope status line widgets for Claude Code. Use when user wants to customize widgets, change theme, reorder elements, or modify display style.

    Also in 5 projects that use this

  • ralphkraussSkill

    resolve-conflicts

    Resolve git merge conflicts or re-apply changes from a stale branch onto current main. Use when user says "resolve conflicts", "merge conflicts", "rebase branch", "branch is behind", "re-apply changes", "port branch", or a branch is too far behind main to merge cleanly.

    Also in 3 projects that use this

  • MicrosoftSkill

    sync

    Sync the current session branch with its upstream branch, or publish the current session branch to a remote. Use when the user asks to sync a branch, pull latest changes, rebase onto upstream, push current branch, publish branch, or set upstream.

    Also in 5 projects that use this

  • kt057Skill

    check

    lint, typecheck, test を一括実行して結果をサマリーする

    Also in 7 projects that use this

  • Microsoft AzureSkill

    test

    Also in 12 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 50 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use LaTeX math ($$ for display, $ for inline) extensively

    line 15
  2. Distinctive:

    Prefer math over code examples

    line 17
  3. Very specific:

    Use numbered sections: ## #12 Hookean Spring

    line 19
  4. Distinctive:

    Always provide both C++ and Python using tabs:

    line 48
  5. Distinctive:

    Start high-level, progress to details

    line 60
  6. Distinctive:

    Use tables for structured data

    line 63
  7. Distinctive:

    Use prerequisites table with versions and links

    line 101
  8. Very specific:

    Use shell tags: shell, bash, powershell

    line 104

“Common” is measured: kept by at least 6 in 10 of the 50 edited versions of this file we could read. “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

Document Rules

Documentation style varies by type. Follow these principles for consistency.

Specification Documents (docs/specification/)

Purpose: Formal mathematical reference for constitutions, geometries, and core concepts.

Rules:

  • Use LaTeX math ($$ for display, $ for inline) extensively
  • Define all variables after formulas
  • Prefer math over code examples
  • Structure: Definition → State Variables → Formulations → Energy Functions
  • Use numbered sections: ## #12 Hookean Spring
  • Reference academic papers when applicable
  • Include parameter ranges: "$100MPa \le \kappa \le 100GPa$"
  • Explain notation: "where $|\cdot|_F$ is the Frobenius norm"
  • Cross-reference: [link text](./file.md)
  • Include diagrams (SVG): ![Description](./media/figure.svg)

Example:

# Hookean Spring

**Hookean Spring** is a constitutive model for simulating linear elastic springs.

## #12 Hookean Spring

$$
E = \frac{\kappa}{2} \epsilon^2 = \frac{\kappa}{2} \left(\frac{L - L_0}{L_0}\right)^2
$$

where:
- $\kappa$ is the spring constant
- $L_0$ is the rest length

Tutorial Documents (docs/tutorial/)

Purpose: User-friendly guides with code examples.

Rules:

  • Always provide both C++ and Python using tabs:
    === "C++"
        \`\`\`cpp
        // code
        \`\`\`
    === "Python"
        \`\`\`python
        # code
        \`\`\`
  • Include complete, runnable examples with imports
  • Start high-level, progress to details
  • Use diagrams: ![description](./media/file.svg)
  • Include step-by-step workflows
  • Use tables for structured data

Example:

=== "C++"
    \`\`\`cpp
    using namespace uipc::core;
    Scene scene;
    \`\`\`
=== "Python"
    \`\`\`python
    from uipc.core import *
    scene = Scene()
    \`\`\`

Reference Documents (docs/specification/*_uid.md)

Purpose: Technical reference for identifiers and ranges.

Rules:

  • Define identifier ranges clearly
  • Distinguish official vs. user-defined ranges
  • List all official identifiers
  • Cross-reference to detailed specs

Example:

# Constitution UID

64-bit unsigned integer. Official range: $[0, 2^{32}-1]$. User-defined: $[2^{32}, 2^{64}-1]$.

Build/Install Documents (docs/build_install/)

Purpose: Step-by-step build instructions.

Rules:

  • Use prerequisites table with versions and links
  • Number steps clearly
  • Include verification commands
  • Use shell tags: shell, bash, powershell
  • Show copy-pasteable commands

Example:

| Name | Version | Usage | Import |
|------|---------|-------|--------|
| [CMake](https://cmake.org/) | >=3.26 | build system | system install |

\`\`\`shell
git clone https://github.com/microsoft/vcpkg.git
\`\`\`

General Rules

  • Math: $$ for display, $ for inline. Define variables after formulas. Use bold for vectors: $\mathbf{x}$
  • Code: Appropriate language tags. Complete, runnable examples. C++/Python tabs in tutorials
  • Links: Relative paths [text](./file.md). Link to related docs and external resources
  • Media: Store in media/ subdirectories. Use SVG. Reference: ![Description](./media/file.svg)
  • Tables: Markdown tables with headers for structured data
  • Headers: # title, ## sections, ### subsections

Checklist

  • Formulas use LaTeX, variables defined
  • Code examples complete and runnable
  • Cross-references use relative paths
  • Images exist and are referenced
  • Tables formatted correctly
  • Document type principles followed
  • No ambiguity in technical descriptions

Download now (ZIP)

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.