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.
- sync-festivalSkill
- agentic-workflowsSkill
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
- Distinctive: line 19
Ask AI tab picks the block for the active locale and keeps edits per locale.
- Very specific: line 37
Usetmp in this workspace to store temporary script, artifact or anything that is not included in the app or in build process
- Distinctive: line 64
Never deploy directly by pushing Docker images to the registry
- Distinctive: line 94
Keep the site dependency-free: no bundler, framework, or npm packages.
- Distinctive: line 95
Commit subjects are imperative sentences with no prefix.
≈ “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.
Files
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.htmlis the whole app: plain HTML, CSS, and vanilla JavaScript with no build step. MapLibre and Tailwind load from CDNs.src/events.jsonis the single source of truth for all festival data.- User-facing copy lives in
src/i18n/vi.jsonandsrc/i18n/en.json, loaded bysrc/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.jsonis also the source for cluster names and venue kinds; their translations sit in thevocabblock of each locale file, keyed by the source value.src/prompts.jsonholds the suggested AI prompts. Each entry keeps the Vietnamesegroup,titleandcontentas the source values and carries the English copy underen; the Ask AI tab picks the block for the active locale and keeps edits per locale.tools/build-agent-files.mjsreadssrc/events.jsonand writessrc/index.mdandsrc/llms.txt, plus browser-readablesrc/index.md.htmlandsrc/llms.txt.htmlwrappers.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/andsrc/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/keepssrc/events.jsonin 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 itsSKILL.mdfirst; the Python scripts live next to it. Itsimagescommand gathers promotion photos and designed cards, reads each one with OCR to prove which event it shows, and stores the winners undersrc/images; it runs locally, not in CI, because it needs Pillow and Apple's Vision framework.tools/build-event-posters.pydraws 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--checkin CI) after any title, date or venue change.- Generated files are gitignored. CI regenerates them, then builds the nginx image.
- Use
tmpin 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 filesApify 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 imagesimages 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 tomainbuilds and pushes the image toghcr.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.
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
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.

