flutter_music: Instructions file for Codex

AGENTS.md

flutter_music AGENTS.md is an instructions file for Codex, OpenCode from niuxinhuai/flutter_music. It costs 748 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for a Flutter music app modeled on NetEase Cloud Music. Flutter is a toolkit for building apps, and the document explains the project’s Dart code structure, data services, generated files, tests, and development workflow.

In plain words
What is it for?
Use it when locating a feature, route, model, or service; changing generated data models; running code generation; checking the app with analysis; running tests; and documenting verification results.
Why use it?
It gives an AI assistant the project map and rules needed to make small, compatible changes without breaking the app’s existing state-management and code-generation setup.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is niuxinhuai/flutter_music's own configuration. It tells Codex and OpenCode how to work on flutter_music itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything flutter_music configures →

Reuse

Borrowing it

Nothing to install: this file belongs to niuxinhuai/flutter_music. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/niuxinhuai/flutter_music/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/niuxinhuai/flutter_music

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for flutter_music AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/niuxinhuai/flutter_music/agents-md/github.svg)](https://agentmods.dev/instructions/niuxinhuai/flutter_music/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/niuxinhuai/flutter_music/agents-md"><img src="https://agentmods.dev/badge/instructions/niuxinhuai/flutter_music/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for flutter_music AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/niuxinhuai/flutter_music/agents-md"><img src="https://agentmods.dev/badge/instructions/niuxinhuai/flutter_music/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 748 This file is loaded in full into every session.
When invoked 748 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00748 $0.00748
Opus 5 $0.00374 $0.00374
Sonnet 5 $0.00150 $0.00150
Haiku 4.5 $0.00075 $0.00075

Measured 10d ago against content hash bd16d1c81aa9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

flutter_music AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 38 lines

What it actually says

flutter_music AI 工作规范

本仓库是一个 Flutter 仿网易云音乐客户端,主要技术栈是 Flutter 3.29.3、Dart 3.7.2、Fish Redux、Dio、SmartRefresher、json_serializable。AI 或自动化工具改动代码前先读本文件,再按 docs/AI_WORKFLOW.mddocs/PROJECT_STANDARDS.md 执行。

项目地图

  • lib/main.dart:应用入口,挂载 ApplicationPage
  • lib/sections/<feature>/page/:Fish Redux 页面目录,通常包含 state.dartaction.dartview.dartreducer.darteffect.dartpage.dart
  • lib/sections/<feature>/widget/:业务内组件。
  • lib/sections/<feature>/models/lib/models/:接口模型;*.g.dart 是生成文件。
  • lib/repository/services/common_service.dart:网易云接口和本地 JSON mock 数据入口。
  • lib/helper/:路由、服务、用户态、SP 等辅助层。
  • lib/res/assets/:主题、颜色、图标字体、图片、mock JSON。
  • test/:Flutter 测试。

AI 工作流

  1. 明确需求归属:先定位涉及的 feature、route、model、service,再决定是否需要新增页面、组件、模型或接口。
  2. 小步改动:优先沿用已有 Fish Redux 文件拆分,不做大范围重构,不迁移状态管理框架。
  3. 生成代码:改动 @JsonSerializable 模型后运行 flutter pub run build_runner build --delete-conflicting-outputs,不要手写对应的 *.g.dart
  4. 验证顺序:能跑则依次执行 flutter pub getflutter analyze --no-fatal-infos --no-fatal-warningsflutter test。如果旧依赖或环境导致失败,要在交付说明中记录失败命令和原因。
  5. 交付说明:说明改了哪些文件、为什么这么改、验证结果、剩余风险。不要隐藏未验证的内容。

代码约束

  • 保持 pubspec.yaml 中声明的 Flutter/Dart SDK 兼容范围,不随意引入更高 SDK 才支持的语法或 API。
  • UI 代码沿用当前 ContainerImage.asset、自定义 widget、项目颜色资源等风格。
  • Fish Redux 中副作用放在 effect.dart,状态变更放在 reducer.dartview.dart 只负责渲染和派发 action。
  • 接口访问优先走 CommonService / ServiceHelper,调试数据优先复用 assets/jsonJsonStringConstants
  • 新增资源必须同步 pubspec.yamlassetsfonts 配置。
  • 不提交本地机器路径、证书、密钥、账号、Cookie、缓存和构建产物。

Git 与提交

  • 不回滚用户已有改动,除非用户明确要求。
  • 生成文件、格式化、依赖锁文件变更要和触发它们的源码变更一起解释清楚。
  • PR 需包含测试结果;不能测试时说明原因。
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 38 lines · 748 tokens per session scan A bd16d1c81aa9

Subscribe to this mod's changes

flutter_music AGENTS.md is an instructions file published in the GitHub repository niuxinhuai/flutter_music (11 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 748 tokens to every session, about $0.0037 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens