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.
curl -O https://raw.githubusercontent.com/niuxinhuai/flutter_music/main/AGENTS.mdgit clone --depth 1 https://github.com/niuxinhuai/flutter_musicWrote 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.
[](https://agentmods.dev/instructions/niuxinhuai/flutter_music/agents-md)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.md 和 docs/PROJECT_STANDARDS.md 执行。
项目地图
lib/main.dart:应用入口,挂载ApplicationPage。lib/sections/<feature>/page/:Fish Redux 页面目录,通常包含state.dart、action.dart、view.dart、reducer.dart、effect.dart、page.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 工作流
- 明确需求归属:先定位涉及的 feature、route、model、service,再决定是否需要新增页面、组件、模型或接口。
- 小步改动:优先沿用已有 Fish Redux 文件拆分,不做大范围重构,不迁移状态管理框架。
- 生成代码:改动
@JsonSerializable模型后运行flutter pub run build_runner build --delete-conflicting-outputs,不要手写对应的*.g.dart。 - 验证顺序:能跑则依次执行
flutter pub get、flutter analyze --no-fatal-infos --no-fatal-warnings、flutter test。如果旧依赖或环境导致失败,要在交付说明中记录失败命令和原因。 - 交付说明:说明改了哪些文件、为什么这么改、验证结果、剩余风险。不要隐藏未验证的内容。
代码约束
- 保持
pubspec.yaml中声明的 Flutter/Dart SDK 兼容范围,不随意引入更高 SDK 才支持的语法或 API。 - UI 代码沿用当前
Container、Image.asset、自定义 widget、项目颜色资源等风格。 - Fish Redux 中副作用放在
effect.dart,状态变更放在reducer.dart,view.dart只负责渲染和派发 action。 - 接口访问优先走
CommonService/ServiceHelper,调试数据优先复用assets/json和JsonStringConstants。 - 新增资源必须同步
pubspec.yaml的assets或fonts配置。 - 不提交本地机器路径、证书、密钥、账号、Cookie、缓存和构建产物。
Git 与提交
- 不回滚用户已有改动,除非用户明确要求。
- 生成文件、格式化、依赖锁文件变更要和触发它们的源码变更一起解释清楚。
- PR 需包含测试结果;不能测试时说明原因。
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.
- 10d ago First seen · 38 lines · 748 tokens per session scan A bd16d1c81aa9
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.
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.
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.
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).
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).
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.
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.