agentleFS
vanduc2514vanduc2514/agent-tkst-hanoi-2026/AGENTS.md

agent-tkst-hanoi-2026

AGENTS.md0 starsChanged 9 days agoMITView on GitHub

images needs Pillow (python3 -m pip install pillow) and compiles scripts/ocr.swift on first use; without OCR it keeps only photos it can attribute and never guesses a card. mise env lists the exported variables. Never pass the token as an argument or copy it into another file.

  • Reads credentials
  • Installs packages
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,196 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is 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.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask AI tab picks the block for the active locale and keeps edits per locale.

    line 19
  2. Very specific:

    Usetmp in this workspace to store temporary script, artifact or anything that is not included in the app or in build process

    line 37
  3. Distinctive:

    Never deploy directly by pushing Docker images to the registry

    line 64
  4. Distinctive:

    Keep the site dependency-free: no bundler, framework, or npm packages.

    line 94
  5. Distinctive:

    Commit subjects are imperative sentences with no prefix.

    line 95

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md 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
AGENTS.md

Project

An unofficial events map for Hanoi: a static page with an interactive map, a route planner, and agent-readable Markdown. The current dataset is the Hanoi Design Festival 2026.

Hints

  • src/index.html is the whole app: plain HTML, CSS, and vanilla JavaScript with no build step. MapLibre and Tailwind load from CDNs.
  • src/events.json is the single source of truth for all festival data.
  • User-facing copy lives in src/i18n/vi.json and src/i18n/en.json, loaded by src/i18n.js: browser detection, Vietnamese as the default, ?lang= override and a stored choice. Add every key to both files and keep them in sync; the Dockerfile copies these files next to the page, and event titles/descriptions stay as the organiser wrote them in Vietnamese.
  • src/events.json is also the source for cluster names and venue kinds; their translations sit in the vocab block of each locale file, keyed by the source value.
  • src/prompts.json holds the suggested AI prompts. Each entry keeps the Vietnamese group, title and content as the source values and carries the English copy under en; the Ask AI tab picks the block for the active locale and keeps edits per locale.
  • tools/build-agent-files.mjs reads src/events.json and writes src/index.md and src/llms.txt, plus browser-readable src/index.md.html and src/llms.txt.html wrappers.
  • src/ is the folder that gets served and copied into the image, so it holds the page, the data files and the generated output. images/ sits at the root and is only used by the README, not by the site. src/images/kinds/ holds the tile for each kind, used when an image fails to load; src/images/events/ and src/images/cards/ hold the organiser's own pictures; src/images/posters/ holds the generated card for every event that has none.
  • .agents/skills/sync-festival/ keeps src/events.json in step with the organiser. It reads the official JSON API and pulls Facebook, Instagram and Threads through Apify, then reports drift before anything is written. Read its SKILL.md first; the Python scripts live next to it. Its images command gathers promotion photos and designed cards, reads each one with OCR to prove which event it shows, and stores the winners under src/images; it runs locally, not in CI, because it needs Pillow and Apple's Vision framework.
  • tools/build-event-posters.py draws one poster per event that has no photograph: title, date and venue, in the colour of its kind. It is committed output, so rerun it (or --check in CI) after any title, date or venue change.
  • Generated files are gitignored. CI regenerates them, then builds the nginx image.
  • Usetmp in this workspace to store temporary script, artifact or anything that is not included in the app or in build process

Local Development

python3 -m http.server 8080 --directory src                        # start local development server
node tools/build-agent-files.mjs --base https://tkst.nvduc.dev     # generate markdown + HTML agent files

Apify through mise

mise.toml pins the Apify CLI; the gitignored mise.local.toml holds APIFY_TOKEN as an environment variable. Run the sync skill through mise exec so the token reaches the process:

mise install                                                       # once per machine, installs apify-cli
mise exec -- python3 .agents/skills/sync-festival/scripts/sync_festival.py fetch
mise exec -- python3 .agents/skills/sync-festival/scripts/sync_festival.py diff
mise exec -- python3 .agents/skills/sync-festival/scripts/sync_festival.py images

images needs Pillow (python3 -m pip install pillow) and compiles scripts/ocr.swift on first use; without OCR it keeps only photos it can attribute and never guesses a card.

mise env lists the exported variables. Never pass the token as an argument or copy it into another file.

Deployment

  • Never deploy directly by pushing Docker images to the registry
  • Trigger CI action, skip if it is triggered automatically. Then wait for the CI action to complete
  • GitHub is the primary remote (origin). A push to main builds and pushes the image to ghcr.io.

Scheduled festival sync

.github/workflows/sync-festival.md is a GitHub Agentic Workflow: it executes the skill in frontmatter steps (so APIFY_TOKEN never reaches the agent), then lets the agent resolve the review rows and open a pull request whose body is tmp/sync/report.md. sync-festival.lock.yml is generated — edit the .md and run gh aw compile, never the lock file.

The schedule is paused; triggers are manual (gh aw run sync-festival) until the model routing below is confirmed. model: gpt-4.1 is pinned because the default auto resolves to a model the token cannot call, which the API answers with 502. tools.github: false drops the GitHub MCP server, which the agent never uses: files are edited directly and the PR is created by safe-outputs. Threat detection stays on — the agent reads untrusted post text, so the detector that screens its output is worth its ~28 KB.

Required repository secrets: APIFY_TOKEN and COPILOT_GITHUB_TOKEN. The Copilot secret must be a fine-grained PAT (github_pat_…) whose only permission is Account → Copilot Requests; OAuth tokens (gho_…) are rejected. Push the Apify secret from the local mise profile, never from a copy of the value:

mise exec -- bash -c 'printf "%s" "$APIFY_TOKEN" | gh secret set APIFY_TOKEN --repo vanduc2514/agent-tkst-hanoi-2026'

Conventions

  • There is no test suite, linter, or package manager. Verify changes by serving the page and open the page via browser
  • Keep the site dependency-free: no bundler, framework, or npm packages.
  • Commit subjects are imperative sentences with no prefix.

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.