agentleFS
dhruvanbhalaradhruvanbhalara/skills/AGENTS.md

skills

AGENTS.md30 starsChanged 9 months agoMITView on GitHub

As an AI agent working on this repository, you MUST adhere to the following core principles and coding standards. These are synthesized from the individual skills in the skills/ directory (covering Flutter, Dart, GitHub, and other development workflows).

The file

Show its rules and text

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

14 rules. About 1 is common, 4 are distinctive, and 9 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

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

    Conciseness: Keep files < 300 lines. Keep functions short (< 50 lines).

    line 15
  2. Very specific:

    Null Safety: Avoid ! operator. Prefer pattern matching or early returns.

    line 16
  3. Very specific:

    Logging: Use AppLogger. NEVER use print() or raw debugPrint().

    line 17
  4. Very specific:

    Models: Use fromJson/toJson factories.

    line 21
  5. Very specific:

    Performance: NO heavy work in build(). Mandate isolates for JSON parsing > 1MB.

    line 27
  6. Very specific:

    Patterns: NO nested ScrollViews in same direction.

    line 28
  7. Distinctive:

    Pull Requests: Ensure zero analysis warnings and passing tests before PR.

    line 33
  8. Distinctive:

    Changelogs: Follow Keep a Changelog standards.

    line 34
  9. Very specific:

    Sensitive Data: Use flutter_secure_storage for tokens and secrets.

    line 37
  10. Distinctive:

    Traffic: All API communication MUST use HTTPS.

    line 38
  11. Very specific:

    Structure: All test files MUST strictly mirror the lib/ directory structure.

    line 41
  12. Very specific:

    Mocks: Use mocktail for all dependency mocking.

    line 42
  13. Very specific:

    Configuration: Use a single main.dart. Feed environment data via --dart-define-from-file=config/<flavor>.json.

    line 46
  14. Common:

    Secrets: NEVER commit production secrets to Git.

    line 47

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

Project Instructions & Best Practices

As an AI agent working on this repository, you MUST adhere to the following core principles and coding standards. These are synthesized from the individual skills in the skills/ directory (covering Flutter, Dart, GitHub, and other development workflows).

Core Tech Stack

  • Language: Dart 3 (Strong typing, null safety, exhaustive switch expressions)
  • Framework: Flutter
  • State Management: BLoC / Cubit (Event-driven, logic separation)
  • Dependency Injection: injectable / get_it
  • Architecture: Clean Architecture (Data → Domain → Presentation)

Coding Standards

  • Naming: PascalCase for classes, camelCase for variables/functions, snake_case for files.
  • Strong Typing: NO dynamic. Use Object? or explicit types.
  • Conciseness: Keep files < 300 lines. Keep functions short (< 50 lines).
  • Null Safety: Avoid ! operator. Prefer pattern matching or early returns.
  • Logging: Use AppLogger. NEVER use print() or raw debugPrint().

Architecture & Data

  • Repository Pattern: DataSources handle raw IO (Dio, Isar, Firebase). Repositories handle orchestrating and domain mapping.
  • Models: Use fromJson/toJson factories. Data models live in data/, Domain entities in domain/, and UI states in presentation/.
  • Forms: Manage form state in BLoCs. Use pure validator functions in the domain layer.

UI & UX (Design System)

  • Design Tokens: ZERO hardcoded colors or spacing. Use AppColors, AppSpacing, and AppRadius.
  • Widget Lifecycle: Declare controllers/nodes as late final in initState() and dispose in dispose().
  • Performance: NO heavy work in build(). Mandate isolates for JSON parsing > 1MB.
  • Patterns: NO nested ScrollViews in same direction. NO private _buildWidget methods (extract into classes). Use Slivers for complex lists.

Git Workflow

  • Atomic Commits: One commit = one logical change. Follow Conventional Commits: type(scope): description.
  • Commit Bodies: Include sub-messages to explain the "why" and "how" of changes.
  • Pull Requests: Ensure zero analysis warnings and passing tests before PR. Provide descriptive titles and internal/external change summaries.
  • Changelogs: Follow Keep a Changelog standards. Do not copy commit logs directly. Read the git history of the target branch, then summarize the changes under clear categories (Added, Changed, Fixed, Removed).

Security

  • Sensitive Data: Use flutter_secure_storage for tokens and secrets. NEVER use SharedPreferences or source code for secrets.
  • Traffic: All API communication MUST use HTTPS.

Testing Strategy (100% Coverage)

  • Structure: All test files MUST strictly mirror the lib/ directory structure.
  • Mocks: Use mocktail for all dependency mocking.
  • Principles: 100% logic coverage for domain and bloc layers. Each test must be independent.

Environment & Flavors

  • Configuration: Use a single main.dart. Feed environment data via --dart-define-from-file=config/<flavor>.json.
  • Secrets: NEVER commit production secrets to Git.

Refer to specific files inside skills/flutter/, skills/dart/, and skills/github/ for detailed rules on Networking, UI/UX, Git, CI/CD, etc.

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.