agentleFS
jazz1xjazz1x/galmuri/skills/doc/SKILL.md

doc

Skill3 starsChanged 7 months agoMITView on GitHub

Document adapter. Calls the distill engine, formats the result as markdown, and saves it to a file. Inherits the prior distill save flow. Triggers: "문서로", "정리해서 저장", "doc", "기록으로", "shrink", "줄여줘", "압축"

26 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use test, plan and 6 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.
  • Microsoft AzureSkill

    test

    Also in 4 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 4 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 3 projects that use this

  • VercelSkill

    deploy

    Deploy applications to Vercel. Use when the user says "deploy", "deploy to Vercel", "push to production", "deploy my app", or "go live".

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 4 projects that use this

  • AWSSkill

    improve-codebase-architecture

    Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 20 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    When triggered via shrink / 줄여줘 / 압축:

    line 40
  2. Distinctive:

    Ask if audience is missing.

    line 50
  3. Distinctive:

    If for any reason the hook did not run (e.g., direct CLI invocation without hooks), call it manually:

    line 73

“Common” is measured: kept by at least 6 in 10 of the 20 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

galmuri:doc — Document adapter

Prerequisites

  • scripts/preflight.sh passes.
  • skills/distill/ engine is installed.
  • scripts/record-asset.sh is executable.

Step 1: Alias detection + Audience

When triggered via shrink / 줄여줘 / 압축:

if [ ! -f ".galmuri/tmp/.warned-shrink" ]; then
  echo "[deprecated] the 'shrink' trigger is routed to a context-based adapter. Scheduled for removal in a future release." >&2
  touch ".galmuri/tmp/.warned-shrink"
fi
# source_tokens ≥ 80 AND ratio > 0.1 → doc runs; otherwise → delegate to another adapter

"Who is this document for? (e.g. the whole team, future-me, an external reviewer)"

  • Ask if audience is missing.

Step 2: Engine Invoke

  • Call distill --mode reduce --ratio 0.3 --audience {X}.
  • Receive the EngineOutput JSON.

Step 3: Render

  • EngineOutput.units → markdown body:
    • Section title = first unit's claim.
    • Each unit's essence + evidence becomes the body copy.
    • dropped[] becomes a "## Omitted items" section.

Step 4: Save

Default path: docs/galmuri-doc-{slug}.md

"Save to docs/galmuri-doc-{slug}.md? (y/n/edit-slug)"

  • y → create the file, then proceed to Step 5.
  • n → stdout only.
  • edit-slug → rename, then create.

Step 5: Asset record

The PostToolUse hook (hooks/shims/asset-record.sh) runs automatically when the Write tool creates docs/galmuri-doc-{slug}.md. You do not need to invoke record-asset.sh manually.

If for any reason the hook did not run (e.g., direct CLI invocation without hooks), call it manually:

bash scripts/record-asset.sh --type doc --tags "doc,{slug}" \
  --source-ref ".galmuri/tmp/source-{slug}.txt" --output "docs/galmuri-doc-{slug}.md"

Output Schema

A markdown file (docs/galmuri-doc-{slug}.md) + an asset record.

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.