agentleFS
hahwulhahwul/gori/docs/AGENTS.md

gori

AGENTS.md117 starsChanged 4 months agoApache-2.0View on GitHub

This document provides instructions for AI agents working on this Hwaro-generated website. This is a static website built with Hwaro, a fast and lightweight static site generator written in Crystal. For detailed documentation on content, templates, configuration, and more: To generate the full embedded AGENTS.md locally, run:

  • In this repositoryOne other file it gives its agents.

The file

Files
AGENTS.md

AGENTS.md - AI Agent Instructions for Hwaro Site

This document provides instructions for AI agents working on this Hwaro-generated website.

Project Overview

This is a static website built with Hwaro, a fast and lightweight static site generator written in Crystal.

Essential Commands

CommandDescription
hwaro buildBuild the site to public/ directory
hwaro serveStart development server with live reload
hwaro new <path>Create new content from archetype
hwaro deployDeploy the site (requires configuration)
hwaro build --draftsInclude draft content
hwaro serve -p 8080Serve on custom port (default: 3000)
hwaro build --base-url "https://example.com"Set base URL for production

Directory Structure

.
├── config.toml          # Site configuration
├── content/             # Markdown content files
│   ├── index.md         # Homepage (single file, no underscore)
│   ├── about.md         # Standalone page
│   └── <section>/       # Section directory (posts/, guide/, chapter-1/, …)
│       ├── _index.md    # Section landing page (underscore-prefixed)
│       └── *.md         # Pages within the section
├── templates/           # Jinja2 templates (Crinja)
│   ├── header.html      # Shared <head> + <body> open
│   ├── footer.html      # Shared <body>/<html> close
│   ├── page.html        # Page template
│   ├── section.html     # Section listing template
│   ├── 404.html         # Not-found page
│   ├── partials/        # Reusable fragments (nav, search, sidebar)
│   └── shortcodes/      # Shortcode templates
├── static/              # Static assets (copied as-is)
└── archetypes/          # Content templates for `hwaro new`

Notes for AI Agents

  1. Front matter can be TOML (+++), YAML (---), or JSON ({...} at file start). Pick one per file and keep delimiters matched.
  2. Rendered content is {{ content }} in templates (already-safe HTML — no extra | safe needed).
  3. Custom metadata is page.extra.field, not page.params.field.
  4. Always preview with hwaro serve before committing.
  5. Validate front matter syntax (TOML, YAML, or JSON) and config.toml after edits.
  6. Use {{ base_url }} prefix for URLs in templates.
  7. Escape user content with {{ value | e }} (or | escape) in templates.

Full Reference

For detailed documentation on content, templates, configuration, and more:

To generate the full embedded AGENTS.md locally, run:

hwaro tool agents-md --local --write

Site-Specific Instructions

<!-- Add your site-specific rules and conventions below -->

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.