Imported from gunnarhull-code/IronSightAI (
AGENTS.md). Install upstream withnpx skills add gunnarhull-code/IronSightAI. Copyright stays with the author.
AGENTS.md
AI SAFETY RULES
IronSight AI — WIW is a Flutter (Dart) mobile-first commercial SaaS app for equipment dealerships, with a Supabase backend (Postgres + Auth). Thin client via PostgREST/GoTrue; no custom server. Future AI and multi-company support are expected.
Product and engineering standards
- Write production-quality code; no temporary hacks.
- Prefer simple, scalable solutions. Keep security in mind.
- Do not remove existing functionality without permission.
- Explain major decisions and impact before large changes; suggest alternatives when relevant.
- Comment only complex or non-obvious logic. Ask if requirements are unclear.
Development Mode
- Default development environment is LOCAL SUPABASE.
- Never connect to the production Supabase project.
- Only connect to the hosted
agent-sandboxproject when the task explicitly requires hosted integration testing.
Git Safety
- Never commit, push, or merge unless the user explicitly instructs you.
- Never create or update a pull request unless the user explicitly instructs you.
- When asked to open a PR: create a Draft PR targeting
mainon branchcursor/<work-slug>. Agents never merge tomainand never push tomain. Gunnar merges manually. - Never modify GitHub settings or deployment workflows.
Scope Control
- Complete only the requested task.
- When a Work Item is assigned, locate the complete founder-approved Cloud Agent assignment in the current prompt/context. It must include scope, exclusions, acceptance criteria, safety boundaries, and required verification. A descriptive slug or ordinary short task description must never substitute for that assignment. Do not use
management/AFK_AGENTS.mdfor assignments. GitHub Issues are not required. - Do not invent additional backlog items or features.
- Stop if the frozen assignment is missing, incomplete, contradictory, or ambiguous — do not create a branch or modify files.
- Stop if architecture changes are required.
- Stop and ask before making major refactors or introducing new dependencies.
Verification
Before reporting a task complete:
- Run
flutter analyze. - Run
flutter test. - Prefer
./scripts/verify.shor the commands indocs/DEVELOPER_WORKFLOW.md. - Report any failures honestly.
- Do not claim manual verification unless it was actually performed.
- Clearly list every file changed.
Database Rules
If a task creates or modifies a Supabase migration:
- Clearly report the migration filename.
- State whether the migration was local Supabase or hosted
agent-sandbox. - Never silently modify database schema.
- Never apply migrations to production.
- Always remind the user to review and apply production migrations manually.
Reporting
Every completed task must end with:
- Files changed
- Tests run
- Analyze results
- Migration name (if any)
- Whether any manual steps are still required
- Any assumptions made during implementation
Setup and workflow
Procedures live in docs/DEVELOPER_WORKFLOW.md (source of truth), project skills under .cursor/skills/, and slash commands under .cursor/commands/. Do not invent alternate workflows.
| When | Use |
|---|---|
| Start / continue a Work Item | skill ironsight-work-item or command start-work-item |
| Verify / finish task / before Draft PR | skill ironsight-verify |
| Open Draft PR | skill ironsight-draft-pr |
| Migrations / production schema | skill ironsight-migration-safety |
| Detached PR QA | command testpr |
Sync local main |
command sync-main |
| Read-only status | command project-status |
| Launch local app (Brave / web-server) | command run-local |
Always-on reminders:
- Canonical work tracking: Draft PRs (one per Work Item). A complete founder-approved Cloud Agent assignment freezes scope; the Draft PR is the unique live work record. Slugs name branches only.
management/AFK_AGENTS.mdis permanent policy, not an assignment board. - Historical numbered sprints:
management/LEGACY_SPRINT_HISTORY.md. - Pre-Work-Item Status Gate is mandatory before starting a new assigned Work Item (see
ironsight-work-item+ DEVELOPER_WORKFLOW). - Agents open Draft PRs; agents never merge or push to
main; Gunnar merges manually; never push documentation commits directly tomain. - Cloud summary: Flutter at
~/flutter(3.44.8); require.env; unit tests need.envnot running Supabase; web-server0.0.0.0:8080may be blank 15–30s on first debug load.