agentleFS
vanloctechvanloctech/youwee/AGENTS.md

youwee

AGENTS.md1.5k starsChanged 2 months agoMITView on GitHub

This file is read automatically at the start of every session. Follow these rules strictly. When bumping the version, you MUST do ALL of the following: In each changelog: - Change ## [Unreleased] heading to ## [X.Y.Z] - YYYY-MM-DD - Add a new empty ## [Unreleased] section above it - Add entries for any new features/fixes done since the last release NEVER bump version without updating changelogs. This is non-negotiable. The repo has a .git/hooks/pre-commit that runs 3 checks automatically:…

Trending

Quiet since September.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 2 mentionsAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the vanloctech/youwee repository that our weekly crawl found: only 3 in all, so this is a hint, not a trend. There is no adoption data for this file yet.
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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.

The file

Show its rules and text

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

19 rules. About 0 are common, 9 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Runtime: Use bun (not npm/npx)

    line 10
  2. Distinctive:

    When bumping the version, you MUST do ALL of the following:

    line 21
  3. Distinctive:

    Update version in 3 files:

    line 23
  4. Very specific:

    Add a new empty ## [Unreleased] section above it

    line 35
  5. Distinctive:

    Add entries for any new features/fixes done since the last release

    line 36
  6. Very specific:

    Always run all 3 checks before committing: Biome → tsc -b → cargo check

    line 46
  7. Very specific:

    Commit message style: type: short description (e.g.

    line 47
  8. Distinctive:

    When creating a work branch, start from the latest main unless the user explicitly requests another base branch.

    line 51
  9. Distinctive:

    Do not merge directly into main.

    line 53
  10. Very specific:

    If editing contributing docs, keep CONTRIBUTING.md, docs/CONTRIBUTING.vi.md, and docs/CONTRIBUTING.zh-CN.md aligned.

    line 54
  11. Distinctive:

    All must pass before a commit succeeds.

    line 63
  12. Distinctive:

    When adding new UI text, add keys to every existing locale directory, not only the 3 primary locales

    line 78
  13. Distinctive:

    Before finishing i18n work, compare the touched namespace across all locale directories and ensure no locale is missing the new keys

    line 79
  14. Very specific:

    When changing SDK TypeScript source, run bun run build:sdk

    line 84
  15. Very specific:

    When adding or changing public SDK APIs, update sdk-js/README.md and add an Unreleased entry in sdk-js/CHANGELOG.md

    line 85
  16. Very specific:

    Do not bump sdk-js/package.json version unless the user explicitly asks for an SDK release/version bump

    line 86
  17. Very specific:

    Keep SDK TypeScript strict and avoid any in public API types unless there is a clear compatibility reason

    line 87
  18. Very specific:

    When changing extension behavior, run bun run ext:build

    line 92
  19. Distinctive:

    Keep extension user-facing text and icons consistent with the app's current UI language and visual style

    line 93

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

AGENTS.md — Project Rules for AI Assistants

This file is read automatically at the start of every session. Follow these rules strictly.

Project Info

  • App name: Youwee
  • Repo: github.com/vanloctech/youwee
  • Stack: Tauri 2.0 (Rust backend) + React 19 + TypeScript + Tailwind CSS
  • Runtime: Use bun (not npm/npx)
  • Linting: bun run biome check --write .
  • Rust check: cargo check (run in src-tauri/)
  • TypeScript check: bun run tsc -b
  • Default branch: main
  • Language: User communicates in Vietnamese

Mandatory Checklists

Version Bump Checklist

When bumping the version, you MUST do ALL of the following:

  1. Update version in 3 files:
    • package.json → "version"
    • src-tauri/Cargo.toml → version
    • src-tauri/tauri.conf.json → "version"
  2. Update 3 changelog files:

    • CHANGELOG.md (English, root)
    • docs/CHANGELOG.vi.md (Vietnamese)
    • docs/CHANGELOG.zh-CN.md (Chinese Simplified)

    In each changelog:

    • Change ## [Unreleased] heading to ## [X.Y.Z] - YYYY-MM-DD
    • Add a new empty ## [Unreleased] section above it
    • Add entries for any new features/fixes done since the last release

    NEVER bump version without updating changelogs. This is non-negotiable.

  3. Cargo.lock will auto-update — no manual edit needed.

Commit Rules

  • NEVER commit unless the user explicitly asks (e.g. "commit nha", "commit di")
  • NEVER push unless the user explicitly asks
  • Always run all 3 checks before committing: Biome → tsc -b → cargo check
  • Commit message style: type: short description (e.g. feat:, fix:, chore:, docs:)

Branch and PR Rules

  • When creating a work branch, start from the latest main unless the user explicitly requests another base branch.
  • Pull Requests should target main by default.
  • Do not merge directly into main; use a Pull Request workflow.
  • If editing contributing docs, keep CONTRIBUTING.md, docs/CONTRIBUTING.vi.md, and docs/CONTRIBUTING.zh-CN.md aligned.

Pre-commit Hook

The repo has a .git/hooks/pre-commit that runs 3 checks automatically:

  1. Biome lint
  2. TypeScript type check (tsc --noEmit)
  3. Cargo check

All must pass before a commit succeeds.

Changelog Conventions

  • Format: Keep a Changelog
  • Sections: ### Added, ### Fixed, ### Changed, ### Removed
  • Each entry starts with - **Feature name** - Description
  • Vietnamese changelog uses: ### Thêm mới, ### Sửa lỗi, ### Thay đổi, ### Xóa bỏ
  • Chinese changelog uses: ### 新增, ### 修复, ### 变更, ### 移除

i18n

  • Namespaces: common, settings, pages, channels, download, universal, gallery, metadata, subtitles, plus any future feature-specific namespaces already present in src/i18n/locales/{lang}/
  • Primary locales: en, vi, zh-CN
  • Supported locale directories currently live in src/i18n/locales/{lang}/
  • When adding new UI text, add keys to every existing locale directory, not only the 3 primary locales
  • Before finishing i18n work, compare the touched namespace across all locale directories and ensure no locale is missing the new keys

SDK Rules

  • SDK source lives in sdk-js/src/; generated build output lives in sdk-js/dist/
  • When changing SDK TypeScript source, run bun run build:sdk
  • When adding or changing public SDK APIs, update sdk-js/README.md and add an Unreleased entry in sdk-js/CHANGELOG.md
  • Do not bump sdk-js/package.json version unless the user explicitly asks for an SDK release/version bump
  • Keep SDK TypeScript strict and avoid any in public API types unless there is a clear compatibility reason

Browser Extension Rules

  • Extension source lives in extensions/youwee-webext/
  • When changing extension behavior, run bun run ext:build
  • Keep extension user-facing text and icons consistent with the app's current UI language and visual style
  • Browser extension deep links must preserve the URL payload when opening the desktop app from a closed state

UI Design Patterns

  • Info badges (read-only): rounded, no border, solid background (e.g. bg-blue-500/10 text-blue-600)
  • Action buttons: rounded-md, border border-dashed, hover effects
  • Time range: amber color scheme (bg-amber-500/10 text-amber-600 dark:text-amber-400), Scissors icon
  • AI/Summary: purple color scheme (bg-purple-500/10 text-purple-500), Sparkles icon

Architecture Patterns

  • Per-item settings are snapshotted at add-time from global settings, stored as item.settings
  • App data is stored in SQLite (youwee.db), initialized in src-tauri/src/database/connection.rs
  • logs.db is the legacy database filename; keep automatic migration to youwee.db and preserve the legacy file as a backup
  • DB migrations use ALTER TABLE ... ADD COLUMN with .ok() to ignore "already exists" errors
  • FFmpeg is bundled (not system) on macOS — rebuilt with --enable-securetransport for TLS support
  • download_sections format: "*MM:SS-MM:SS" (with * prefix for yt-dlp). Strip * before storing in history.
  • Library/history is the source for downloaded-video duplicate detection; do not add a separate duplicate-history table unless explicitly requested.
  • History should remain persistent until the user deletes/clears Library entries; do not reintroduce a fixed max-history limit.
  • yt-dlp advanced options must remain structured and allowlisted; do not add raw command-line argument text boxes without explicit approval.
  • Validate yt-dlp advanced options on both frontend and backend, and keep app-managed options such as cookies, output paths, retries, and site-specific headers authoritative.

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.