Skip to content
25 changes: 25 additions & 0 deletions packages/camera/camera_android_camerax/AGENTS.md

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

High level feedback this is much longer than an initial draft I thinks should be. Following the guidance in https://www.kaggle.com/whitepaper-the-new-SDLC-with-vibe-coding I think we should try to make this as short as we can since every token is an overhead in every conversation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might have gone extreme in the other direction but the agent I edited with made it seem like I can get rid of all the wordiness and focus on the core operations/skills it needs to know so edited it down to this. PTAL!

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Agent Guide for camera_android_camerax

## Core Workflows

- **Check Environment**: Run [check-readiness](.agents/skills/check-readiness/SKILL.md)
when starting a new task or if you suspect environment issues.
- **Regenerate Code**:
- Pigeon (`dart run pigeon --input pigeons/camerax_library.dart`): Run after
modifying `pigeons/camerax_library.dart`.
- Mocks (`dart run build_runner build -d`): Run after modifying mocked
classes or adding new mocks. (see [dart-generate-test-mocks](.agents/skills/dart-generate-test-mocks/SKILL.md))
- **Verify Tests**: All tests must pass before landing. Add or update tests for
any new logic. For integration tests, see [flutter-add-integration-test](.agents/skills/flutter-add-integration-test/SKILL.md).
- **Run Pre-Push Checks**: Run [pre-push-skill](.agents/skills/pre-push-skill/SKILL.md)
before pushing to prevent CI failures and code review blocks.

## Agent Guidelines

- Use [receiving-code-review](.agents/skills/receiving-code-review/SKILL.md)
to technically verify review feedback before blindly implementing suggestions,
especially if feedback seems technically questionable.
- Use `/grill-me` or `/plan` for complex features before writing code.
- Maintain high test coverage using [dart-add-unit-test](.agents/skills/dart-add-unit-test/SKILL.md)
and [dart-collect-coverage](.agents/skills/dart-collect-coverage/SKILL.md).
- Avoid duplicating constant strings; reuse existing ones from adjacent code.
Loading