agentleFS
yfgeyfge/ai-video-studio/AGENTS.md

ai-video-studio

AGENTS.md65 starsChanged 8 months agoMITView on GitHub

This file is the lightweight entrypoint for every coding agent working in this repository. Treat it as the table of contents, not the encyclopedia. Detailed policy lives in the linked docs under docs/. ai-video-studio is an AI production platform with: Start here, then read only the docs needed for the task:

  • 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,736 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 repositoryOne other file it gives its agents.

The file

Show its rules and text

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    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. Distinctive:

    Follow: system / developer -> user -> AGENTS.md -> linked repository docs.

    line 7
  2. Distinctive:

    Keep CLAUDE.md and GEMINI.md as exact mirrors or symlinks to this file.

    line 8
  3. Distinctive:

    Keep real rules in the repository.

    line 9
  4. Distinctive:

    Start here, then read only the docs needed for the task:

    line 22
  5. Distinctive:

    Use repository-local, versioned artifacts as the source of truth.

    line 38
  6. Distinctive:

    Keep new code aligned with the existing domain layering:

    line 39
  7. Very specific:

    Do not add new dependencies on the known choke points listed in ARCHITECTURE.md.

    line 42
  8. Very specific:

    Do not add new direct SQLAlchemy .query(...) access outside repositories.

    line 43
  9. Distinctive:

    When a rule belongs in automation, encode it in code or docs instead of repeating it in prompts.

    line 44
  10. Very specific:

    add npm run test for behavior/state/API-client changes

    line 58
  11. Very specific:

    add npm run build for route, layout, auth, config, or hydration-sensitive changes

    line 59
  12. Distinctive:

    Do not claim Chrome verification when the run actually used a fallback engine.

    line 72
  13. Distinctive:

    Keep changes atomic and traceable.

    line 79
  14. Distinctive:

    Use Conventional Commit subjects.

    line 93
  15. Distinctive:

    When logs, requests, or browser evidence contradict your assumption, stop asserting and reproduce the issue with real evidence before …

    line 100

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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 Guidance for ai-video-studio

This file is the lightweight entrypoint for every coding agent working in this repository. Treat it as the table of contents, not the encyclopedia. Detailed policy lives in the linked docs under docs/.

Instruction Order

  • Follow: system / developer -> user -> AGENTS.md -> linked repository docs.
  • Keep CLAUDE.md and GEMINI.md as exact mirrors or symlinks to this file.
  • Keep real rules in the repository. Do not treat chat history, ad-hoc notes, or personal memory as source of truth.

Repository Mission

ai-video-studio is an AI production platform with:

  • ai-pic-backend/: FastAPI, SQLAlchemy, Alembic, Celery, provider integrations.
  • ai-pic-frontend/: Next.js 16 App Router operator workflows.
  • scripts/: repository automation, harness CLIs, and enforcement checks.
  • tasks.md: the canonical product task board. Do not create or revive task.md.

Agent System Of Record

Start here, then read only the docs needed for the task:

  • ARCHITECTURE.md: system layout, dependency direction, choke points.
  • FRONTEND.md: frontend structure rules and harness notes.
  • RELIABILITY.md: harness runtime modes, browser evidence, trace policy.
  • SECURITY.md: security and secret-handling constraints.
  • docs/README.md: full docs index.
  • docs/architecture/contracts.md: repo contracts, audit outputs, choke-point policy.
  • docs/architecture/file-size-limits.md: file-size and layering limits.
  • docs/architecture/testing-policy.md: validation matrix and minimum gates.
  • docs/architecture/agent-workflow.md: ledger, commit discipline, browser validation recording.
  • docs/generated/db-schema.md: current schema snapshot.
  • docs/exec-plans/active/ and docs/exec-plans/completed/: tracked execution plans.

Working Rules

  • Use repository-local, versioned artifacts as the source of truth.
  • Keep new code aligned with the existing domain layering:
    • backend: api -> services -> repositories -> models
    • frontend: app -> feature hooks/components -> shared ui -> api client
  • Do not add new dependencies on the known choke points listed in ARCHITECTURE.md.
  • Do not add new direct SQLAlchemy .query(...) access outside repositories.
  • When a rule belongs in automation, encode it in code or docs instead of repeating it in prompts.

Validation Baseline

  • Repo docs and mirrors:
    • python scripts/check_repo_docs.py
  • Repo contracts:
    • python scripts/check_repo_contracts.py --mode diff <changed files>
    • python scripts/check_repo_contracts.py --mode audit
  • Backend:
    • narrow/shared changes: cd ai-pic-backend && python run_tests.py quick
    • API/auth/model/migration changes: cd ai-pic-backend && pytest
  • Frontend:
    • always: cd ai-pic-frontend && npm run lint
    • add npm run test for behavior/state/API-client changes
    • add npm run build for route, layout, auth, config, or hydration-sensitive changes
  • Harness:
    • scripts/harness/bootstrap_worktree.sh --mode lite
    • python scripts/harness/doctor.py --run-id <run_id>
    • python scripts/harness/browser_flow.py --scenario <name> --run-id <run_id>
    • python scripts/harness/run_golden_path.py --scenario <name> --run-id <run_id>
    • python scripts/harness/trace_run.py --run-id <run_id>

Browser Evidence Policy

  • For login, frontend/backend integration, AI calls, image/video flows, and other user-visible functional changes, run a real browser validation path.
  • Preferred engine is Chrome DevTools. Fallback to Playwright or Selenium only when Chrome transport fails, and record the fallback explicitly.
  • Store evidence under artifacts/runs/<run_id>/.
  • Do not claim Chrome verification when the run actually used a fallback engine.
  • Current test account for real-browser validation:
    • username: geyunfei
    • password: Gyf@845261

Delivery Discipline

  • Keep changes atomic and traceable.
  • Pair every code change under ai-pic-backend/, ai-pic-frontend/, scripts/, or this file with a matching agent_chats ledger entry in the same commit.
  • Ledger path format: agent_chats/YYYY/MM/DD/YYYY-MM-DDTHH-MM-SSZ-topic.md
  • Required ledger sections, in order:
    • ## User Prompt
    • ## Goals
    • ## Changes
    • ## Validation
    • ## Next Steps
    • ## Linked Commits
  • Before commit, ensure:
    • relevant tests pass
    • pre-commit run --all-files is clean or any skip is documented
    • ./docker/build_prod_images.sh succeeds
  • Use Conventional Commit subjects.

Quality Bar

  • Respect the file-size and structure limits in docs/architecture/file-size-limits.md.
  • Favor thin controllers, focused services, explicit repositories, and colocated frontend feature state.
  • New work must reduce or isolate debt; it must not widen the historical hotspots.
  • When logs, requests, or browser evidence contradict your assumption, stop asserting and reproduce the issue with real evidence before concluding.

Review Mindset

  • Prioritize regressions, broken flows, structural drift, and missing validation.
  • Record decisive commands, browser paths, console output, and network evidence in agent_chats.
  • Summarize remaining risks or TODOs when handing work back.

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.