genmedia-creative-studio
AGENTS.md1.2k starsChanged 6 months agoApache-2.0View on GitHub
This document provides guidelines for AI agents working on the GenMedia Creative Studio codebase. This project uses bd (beads) for issue tracking. Run bd prime for workflow context, or install hooks (bd hooks install) for auto-injection. Quick reference: - bd ready - Find unblocked work - bd create "Title" --type task --priority 2 - Create issue - bd close <id> - Complete work - bd dolt push - Sync with git (run at session end) For full workflow details: bd…
- Commits and pushes
Trending
Steady talk.thin dataabout the whole repository
Who's talking about GoogleCloudPlatform/genmedia-creative-studio
- sudosubin/agents.nix“agent-plugins.github.googlecloudplatform.genmedia-creative-studio: init at 3.20.1”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.googlecloudplatform.genmedia-creative-studio: init at 3.20.1”GitHub · Sep 27, 2026
- ghchinoy/genmedia-creative-studio“chore(main): release mcp 3.21.0”GitHub · Aug 10, 2026
- renovate-bot/GoogleCloudPlatform-_-vertex-ai-creative-studio“chore(main): release mcp 3.21.0”GitHub · Aug 10, 2026
The biggest 4 of 4 mentions linking to the repository that our crawl found. Each line is their own headline.
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.
In this repository12 other files it gives its agents.
- genmedia-imageSkill
- genmedia-producerSkill
- producerSkill
- agent-aware-cliSkill
- build-mcp-genmediaSkill
- genmedia-audio-engineerSkill
- genmedia-image-artistSkill
- genmedia-producerSkill
- genmedia-video-editorSkill
- genmedia-voice-directorSkill
- install-mcp-genmediaSkill
- story-generatorSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
30 rules. About 0 are common, 10 are distinctive, and 20 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
20
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Prefer using shared styles from components/styles.py for common UI elements and layout structures.
- Very specific: line 16
All interactions with GCS for storing media or other assets should use the store_to_gcs utility function located in common/storage.py.
- Distinctive: line 37
When adding a new generative model capability (e.g., a new type of image model, a different video model):
- Very specific: line 38
Add model interaction logic (API calls, request/response handling) to a new file in the models/ directory (e.g., models/new_model_name.py).
- Very specific: line 39
Create UI components for controlling the new model in a subdirectory under components/ (e.g., …
- Very specific: line 40
Create a new page for the model in pages/ (e.g., pages/new_model_name.py), utilizing the page scaffold and new components.
- Very specific: line 42
Add relevant configurations to config/default.py.
- Very specific: line 43
Update navigation in config/navigation.json.
- Very specific: line 47
When storing metadata for generated media, use the MediaItem dataclass from common/metadata.py and the add_media_item_to_firestore function.
- Very specific: line 48
Ensure all relevant fields in MediaItem are populated.
- Distinctive: line 52
Write unit tests for utility functions and model interaction logic.
- Very specific: line 54
Use pytest as the testing framework.
- Very specific: line 58
Use ruff for code formatting and linting.
- Very specific: line 63
Run bd prime for workflow context, or install hooks (bd hooks install) for auto-injection.
- Very specific: line 77
When working with issues using the bd (beads) command-line tool, adhere to the following tactical guidelines:
- Very specific: line 79
Continuous Synchronization: Always run bd dolt push at the beginning of a session to ensure your local issue tracker is aligned with the …
- Very specific: line 80
State Awareness: When analyzing a bug or feature request, first run bd ready to check if there is already an existing, unblocked issue …
- Very specific: line 81
Atomic Updates: When you complete a task or fix a bug, immediately close the corresponding issue (bd close <id>) in the same commit or PR …
- Very specific: line 82
Clear Descriptions: If you discover a new bug during your workflow that is out of scope for your current task, log it immediately using bd …
- Distinctive: line 95
Trigger: When a Pull Request is opened.
- Distinctive: line 103
Trigger: When a new Issue is opened.
- Distinctive: line 144
File issues for remaining work: - Create issues for anything that needs follow-up
- Distinctive: line 155
Verify: - All changes committed AND pushed
- Distinctive: line 160
NEVER stop before pushing - that leaves work stranded locally
- Distinctive: line 161
NEVER say "ready to push when you are" - YOU must push
- Distinctive: line 162
If push fails, resolve and retry until it succeeds
- Distinctive: line 163
SSH PASSPHRASE: If a git push command hangs or fails asking for an SSH passphrase, ABORT the automated push attempt and explicitly instruct …
- Very specific: line 181
Use bd for ALL task tracking — do NOT use TodoWrite, TaskCreate, or markdown TODO lists
- Very specific: line 182
Run bd prime for detailed command reference and session close protocol
- Very specific: line 183
Use bd remember for persistent knowledge — do NOT use MEMORY.md files
≈ “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.
Files
Agent Guidelines for Vertex AI GenMedia Creative Studio
This document provides guidelines for AI agents working on the GenMedia Creative Studio codebase.
Scope of Work
- Do not modify code within the
experiments/directory when refactoring or updating the main application. If a global change (like a model deprecation) impacts an experiment, add an inline# TODO:or// TODO:comment near the affected code in the experiment rather than attempting to refactor its logic.
Styling
- Prefer using shared styles from
components/styles.pyfor common UI elements and layout structures. - Page-specific or component-specific styles that are not reusable can be defined locally within those files.
Google Cloud Storage (GCS)
- All interactions with GCS for storing media or other assets should use the
store_to_gcsutility function located incommon/storage.py. - This function is configurable via
config/default.pyfor bucket names.
Configuration
- Application-level configuration values, such as model IDs, API keys (though avoid hardcoding keys directly), GCS bucket names, and feature flags, should be defined in
config/default.py. - Access these configurations by importing
cfg = Default()fromconfig.default.
State Management
- Global application state (e.g., theme, user information) is managed in
state/state.py. - Page-specific UI state should be defined in corresponding files within the
state/directory (e.g.,state/imagen_state.py,state/veo_state.py).
Error Handling
- For errors that occur during media generation processes and need to be communicated to the user, use the
GenerationErrorcustom exception defined incommon/error_handling.py. - Display these errors to the user via dialogs or appropriate UI elements.
- Log detailed errors to the console/server logs for debugging.
Adding New Generative Models
- When adding a new generative model capability (e.g., a new type of image model, a different video model):
- Add model interaction logic (API calls, request/response handling) to a new file in the
models/directory (e.g.,models/new_model_name.py). - Create UI components for controlling the new model in a subdirectory under
components/(e.g.,components/new_model_name/generation_controls.py). - Create a new page for the model in
pages/(e.g.,pages/new_model_name.py), utilizing the page scaffold and new components. - Define any page-specific state in
state/new_model_name_state.py. - Add relevant configurations to
config/default.py. - Update navigation in
config/navigation.json.
- Add model interaction logic (API calls, request/response handling) to a new file in the
Metadata
- When storing metadata for generated media, use the
MediaItemdataclass fromcommon/metadata.pyand theadd_media_item_to_firestorefunction. - Ensure all relevant fields in
MediaItemare populated.
Testing
- Write unit tests for utility functions and model interaction logic.
- Aim to mock external API calls during unit testing.
- Use
pytestas the testing framework.
Code Quality
- Use
rufffor code formatting and linting. Ensure code is formatted (ruff format .) and linted (ruff check --fix .) before submitting changes.
Issue Tracking
This project uses bd (beads) for issue tracking.
Run bd prime for workflow context, or install hooks (bd hooks install) for auto-injection.
Quick reference:
bd ready- Find unblocked workbd create "Title" --type task --priority 2- Create issuebd close <id>- Complete workbd dolt push- Sync with git (run at session end)
For full workflow details: bd prime
Issue Tracking with Beads (bd)
When working with issues using the bd (beads) command-line tool, adhere to the following tactical guidelines:
- Continuous Synchronization: Always run
bd dolt pushat the beginning of a session to ensure your local issue tracker is aligned with the remote git repository. Runbd dolt pushagain at the very end of your session before your finalgit push. - State Awareness: When analyzing a bug or feature request, first run
bd readyto check if there is already an existing, unblocked issue tracking the work. Do not create duplicate issues. - Atomic Updates: When you complete a task or fix a bug, immediately close the corresponding issue (
bd close <id>) in the same commit or PR as the fix. Do not leave issues dangling. - Clear Descriptions: If you discover a new bug during your workflow that is out of scope for your current task, log it immediately using
bd create "Title" --type bug --priority <level>. Ensure the description clearly outlines the reproduction steps and the context in which it was found. - Force-Syncing JSONL to Database: In sandbox or CLI-restricted environments, the Beads auto-import process (which parses
.beads/issues.jsonlon startup) only triggers if it detects the database is completely empty. If the database state falls out of sync with.beads/issues.jsonldue to consecutive automated writes or interrupted sessions, you must explicitly runbd importto sync the disk-based JSONL state back into the Dolt database. If you need to clean up or recover from a bad tracking state, you can surgically edit the.beads/issues.jsonlfile directly on disk, and then executebd importto cleanly refresh the tracking system.
🤖 GitHub Automation Agents
This repository uses Google's Gemini CLI to automate software engineering tasks. Our AI agents assist with code reviews, issue triage, and general maintenance to keep the project moving efficiently.
Automatic Behaviors
These agents run automatically based on events in the repository.
🔎 Code Reviewer
- Trigger: When a Pull Request is opened.
- Action: The agent reviews the code changes (diff), looking for bugs, security issues, and style improvements.
- Output: It posts review comments directly on the PR.
- Note: The agent focuses on the diff only and provides constructive feedback. It does not replace human review.
📋 Issue Triage
- Trigger: When a new Issue is opened.
- Action: The agent analyzes the title and body of the issue.
- Output: It automatically applies relevant Labels (e.g.,
bug,enhancement,question) to help organize the backlog.
Maintainer Commands
Project maintainers (Owners, Members, Collaborators) can manually invoke the agents using comment commands.
| Command | Description |
@gemini-cli /review | Manually triggers a full code review on the current Pull Request. |
@gemini-cli /triage | Manually triggers label analysis on the current Issue or PR. |
@gemini-cli [question] | Ask the agent a question about the codebase or request a specific task. |
Example: @gemini-cli Explain how the authentication flow works. |
Note: These commands are restricted to project maintainers to prevent abuse and manage costs.
Workflow Architecture
The automation is built on GitHub Actions using a "Router-Worker" pattern:
- Dispatch Router (
gemini-dispatch.yml): The entry point. It listens for events, validates permissions, and routes the request to the correct worker. - Worker Workflows:
gemini-review.yml: Handles code analysis.gemini-triage.yml: Handles labeling.gemini-invoke.yml: Handles general Q&A.
This system is powered by the Gemini CLI action.
Landing the Plane (Session Completion)
When ending a work session, you MUST complete ALL steps below. Work is NOT complete until git push succeeds.
MANDATORY WORKFLOW:
- File issues for remaining work - Create issues for anything that needs follow-up
- Run quality gates (if code changed) - Tests, linters, builds
- Update issue status - Close finished work, update in-progress items
- PUSH TO REMOTE - This is MANDATORY:
git pull --rebase bd dolt push git push git status # MUST show "up to date with origin" - Clean up - Clear stashes, prune remote branches
- Verify - All changes committed AND pushed
- Hand off - Provide context for next session
CRITICAL RULES:
- Work is NOT complete until
git pushsucceeds - NEVER stop before pushing - that leaves work stranded locally
- NEVER say "ready to push when you are" - YOU must push
- If push fails, resolve and retry until it succeeds
- SSH PASSPHRASE: If a
git pushcommand hangs or fails asking for an SSH passphrase, ABORT the automated push attempt and explicitly instruct the user to execute the push manually.
<!-- BEGIN BEADS INTEGRATION v:1 profile:minimal hash:ca08a54f -->Beads Issue Tracker
This project uses bd (beads) for issue tracking. Run bd prime to see full workflow context and commands.
Quick Reference
bd ready # Find available work
bd show <id> # View issue details
bd update <id> --claim # Claim work
bd close <id> # Complete workRules
- Use
bdfor ALL task tracking — do NOT use TodoWrite, TaskCreate, or markdown TODO lists - Run
bd primefor detailed command reference and session close protocol - Use
bd rememberfor persistent knowledge — do NOT use MEMORY.md files
Session Completion
When ending a work session, you MUST complete ALL steps below. Work is NOT complete until git push succeeds.
MANDATORY WORKFLOW:
- File issues for remaining work - Create issues for anything that needs follow-up
- Run quality gates (if code changed) - Tests, linters, builds
- Update issue status - Close finished work, update in-progress items
- PUSH TO REMOTE - This is MANDATORY:
git pull --rebase bd dolt push git push git status # MUST show "up to date with origin" - Clean up - Clear stashes, prune remote branches
- Verify - All changes committed AND pushed
- Hand off - Provide context for next session
CRITICAL RULES:
- Work is NOT complete until
git pushsucceeds - NEVER stop before pushing - that leaves work stranded locally
- NEVER say "ready to push when you are" - YOU must push
- If push fails, resolve and retry until it succeeds
- SSH PASSPHRASE: If a
git pushcommand hangs or fails asking for an SSH passphrase, ABORT the automated push attempt and explicitly instruct the user to execute the push manually.
<!-- END BEADS INTEGRATION -->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.

