agentleFS
NatsuFoxNatsuFox/Tapestry/skills/tapestry/display/SKILL.md

display

Skill63 starsChanged 9 months agoMITView on GitHub

Expose the organized knowledge base through a readable frontend experience. Use when a user wants to browse the knowledge base visually as a lightweight site instead of reading raw Markdown files directly. Supports building viewers for specific data paths (e.g., individual books) or the entire knowledge base.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. autonomous-ai/Physical-AI-Operating-System★ 381same name
    2. autonomous-ai/autonomous-os★ 378same name

    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 repository8 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when:

    line 14
  2. Very specific:

    If a specific path is provided (e.g., "markets-and-trading"), use _data/books/markets-and-trading

    line 35
  3. Very specific:

    If no argument is provided, default to _data/books/ (entire knowledge base)

    line 36
  4. Distinctive:

    Ensure the data directory exists and contains markdown files

    line 38
  5. Very specific:

    Treat the index.md hierarchy as the authoritative structural map.

    line 73
  6. Distinctive:

    Do not flatten the topic/chapter tree into a single undifferentiated list.

    line 74
  7. Distinctive:

    If the knowledge base is sparse or incomplete, still generate the frontend and let empty sections remain honest rather than faking content.

    line 77
  8. Very specific:

    Only use --data-path when intentionally scoping to a single book.

    line 100

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Tapestry Display

Publish a readable frontend for the knowledge base: $ARGUMENTS

When to use this skill

Use this skill when:

  • A user wants to browse the knowledge base visually
  • You need to generate a readable frontend for the organized content
  • The user asks to "view", "display", "publish", or "preview" the knowledge base or a specific book
  • A lightweight site presentation is preferred over raw Markdown files
  • The user wants a blog-like or research portal view of the content

Purpose

This skill acts as the presentation layer for the knowledge base.

It should:

  • scan the specified data directory hierarchy (or default to _data/books/)
  • preserve the topic and chapter structure defined by index.md
  • generate a readable frontend that feels closer to a blog, notebook, or research portal than to a file browser
  • support building viewers for specific books or the entire knowledge base

Workflow

  1. Resolve the data path from the argument:
    • If a specific path is provided (e.g., "markets-and-trading"), use _data/books/markets-and-trading
    • If no argument is provided, default to _data/books/ (entire knowledge base)
  2. Ensure the data directory exists and contains markdown files
  3. Publish the frontend bundle with the appropriate data path:
# For a specific book
python display/_scripts/publish_viewer.py --data-path _data/books/markets-and-trading --force

# For the entire knowledge base (default)
python display/_scripts/publish_viewer.py --force
  1. IMPORTANT: The viewer is created at <data-path>/_viewer. Serve that generated directory directly:
# Serve from the viewer directory (entire KB — default, no --data-path)
python -m http.server 8766 --directory _data/books/_viewer

# Serve from the viewer directory (specific book)
python -m http.server 8766 --directory _data/books/markets-and-trading/_viewer

Critical: When the goal is to display ALL knowledge bases, always build without --data-path and serve _data/books/_viewer. Serving from a topic-specific _viewer/ will show only that one topic. If you used --data-path by mistake, re-run publish_viewer.py --force (without --data-path), kill the old server, and restart from _data/books/_viewer.

  1. Report back with:
    • the data source path
    • the viewer output directory
    • the generated manifest path
    • the local preview URL if served

Rules

  • Treat the index.md hierarchy as the authoritative structural map.
  • Do not flatten the topic/chapter tree into a single undifferentiated list.
  • Preserve topic-level separation so semantically distant materials remain clearly separated.
  • Make documents readable first, but keep enough structural information visible for navigation.
  • If the knowledge base is sparse or incomplete, still generate the frontend and let empty sections remain honest rather than faking content.

Common Issues

Viewer Shows Only One Topic Instead of All Knowledge Bases

Symptom: The viewer loads but only displays one topic (e.g., dingyi-dex-weekly) even though multiple KB topics exist under _data/books/.

Root cause: publish_viewer.py was called with --data-path _data/books/<topic>, which scopes the viewer to just that topic. The generated _viewer/ inside the topic directory is then served instead of the full KB viewer.

Solution:

# 1. Rebuild the full-KB viewer (no --data-path)
python display/_scripts/publish_viewer.py --force

# 2. Kill any old server processes
fuser -k <port>/tcp   # or: kill <PID>

# 3. Serve from the FULL books/_viewer, not a topic-specific one
python -m http.server <port> --directory _data/books/_viewer

Rule: To show ALL KB topics, always build and serve from _data/books/_viewer. Only use --data-path when intentionally scoping to a single book.

Data Path Not Found

The generated viewer expects data/knowledge-base.json under <data-path>/_viewer/. If you see a JSON parsing error like "Unexpected token '<'", it usually means _ui/ was served directly instead of the published _viewer/ output.

Solution: Re-run publish_viewer.py and serve <data-path>/_viewer.

Resources

  • display/_scripts/publish_viewer.py: scans _data/books/, copies frontend assets, and generates the JSON manifest.
  • _ui/: custom static frontend assets for the viewer.

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.