agentleFS
eddmanneddmann/jeeves/skills/pages/SKILL.md

pages

Skill2 starsChanged 9 months agoMITView on GitHub

Publish dynamic web pages for dashboards, trackers, or any data viewable in a browser. Server-side Python runs on every request.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 0

    Distinctive

    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. Very specific:

    Create, edit, and delete .py files in workspace/skills/pages/pages/.

    line 14
  2. Very specific:

    Use request.query_params for URL parameters (e.g.

    line 36
  3. Very specific:

    Use a directory with __init__.py for nested pages:

    line 40
  4. Very specific:

    Use as Tailwind classes: bg-card, border-border, text-accent, text-muted, etc.

    line 70

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

Pages

Drop a .py file in pages/ with a render(request) function and it's live as a web page. Any Python logic — DB queries, API calls, file reads — runs server-side on every request. The server wraps your HTML in a shared dark mode layout with auto-discovered navigation.

Available at http://jeeves:8080 over Tailscale.

Creating Pages

Create, edit, and delete .py files in workspace/skills/pages/pages/. Changes are live on next request — no publish step, no restart.

# pages/status.py
TITLE = "Status"      # display name (default: slug titlecased)
ICON = "📊"           # emoji for nav/home (default: 📄)
PINNED = True         # show in bottom tab bar (default: False)
POSITION = 1          # tab sort order, lower = left (default: 99)

def render(request):
    """Return an HTML string. Can be sync or async."""
    from datetime import datetime
    now = datetime.now().strftime("%H:%M")
    return f'<h1 class="text-2xl font-bold">Status</h1><p>Last checked: {now}</p>'

Rules

  • render(request) is required — receives a FastAPI Request, returns HTML
  • Path(__file__) gives the module's location for relative DB/file paths
  • Files starting with _ are skipped (use for shared helpers)
  • Errors show a styled traceback page, not a raw 500
  • Use request.query_params for URL parameters (e.g. ?date=2026-01-01)

Sub-routes

Use a directory with __init__.py for nested pages:

pages/
├── status.py              # /status
└── items/                 # /items, /items/new, /items/42
    ├── __init__.py        # /items (index) + fallback for /items/{id}
    └── new.py             # /items/new (exact match)

The __init__.py handles the index and any unmatched sub-paths via request.path_params.get("subpath", "").

Server

Page changes are live immediately. Only restart if server.py itself changes:

# Start
nohup uv run workspace/skills/pages/scripts/server.py > /tmp/jeeves-pages.log 2>&1 &

# Restart
pkill -f 'skills/pages/scripts/server.py'; nohup uv run workspace/skills/pages/scripts/server.py > /tmp/jeeves-pages.log 2>&1 &

Styling

Tailwind CSS is available via CDN. Custom theme colours:

bg (#1a1a2e), card (#16213e), border (#2a2a4a), accent (#e94560), muted (#8a8a9a)

Use as Tailwind classes: bg-card, border-border, text-accent, text-muted, etc.

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.