Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/liusencomic-cyber/douyin-agent-kit/copilot-instructionsgit clone --depth 1 https://github.com/liusencomic-cyber/douyin-agent-kitWrote 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/liusencomic-cyber/douyin-agent-kit/copilot-instructions)<a href="https://agentmods.dev/instructions/liusencomic-cyber/douyin-agent-kit/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/liusencomic-cyber/douyin-agent-kit/copilot-instructions.svg" alt="Measured on agentmods" 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.00846 | $0.00846 |
| Opus 5 | $0.00423 | $0.00423 |
| Sonnet 5 | $0.00169 | $0.00169 |
| Haiku 4.5 | $0.00085 | $0.00085 |
Grade A, and why
douyin-agent-kit copilot-instructions.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 6d 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
GitHub Copilot 指令 — douyin-agent-kit
Copilot/Agent 在本仓库工作时的约定。完整仓库地图见 AGENTS.md。
语言约定
- 仓库文档以简体中文为主(README.en.md 为英文对照)。
- 提交信息用英文(
[RED]/[GREEN]前缀标注 TDD 阶段)。
代码风格
- Python 3.10+,标准库优先;
scripts/下脚本须保持纯 stdlib 可运行(避免依赖污染)。 - 配置读取统一走
scripts/dy_config.py(深合并默认值 + 枚举校验),禁止各脚本自行解析配置。 - 路径必须可移植:
os.environ.get("DOUYIN_SYNC_DIR") or Path(__file__).resolve().parent,禁止硬编码绝对路径。 - 错误处理:只捕获预期异常,保留错误上下文;不宽泛
except Exception静默降级。
测试约定
- 所有功能改动先写 RED 测试(断言当前实现缺失/缺陷)→ GREEN 实现,提交标注
[RED]/[GREEN]。 - 测试命令:
env -u PYTHONPATH python3 -m pytest tests/ -q -p no:cacheprovider(212 项)。 - 新增 provider/配置字段时:
config.schema.json+scripts/dy_config.py枚举 + 测试三处同步。
维护矩阵(Maintenance Matrix)
改动什么 → 必须同步什么(交叉引用链):
| 改动 | 必须同步 |
|---|---|
| 新增 ASR provider | config.schema.json asr.provider 枚举 + scripts/dy_config.py ASR_PROVIDERS + setup/setup_douyin_agent_kit.py 选项 + README 特性表 + tests |
| 新增 Vision judge/OCR provider | 同上(vision 段)+ agents/*.md 适配说明 |
| 修改配置默认值 | scripts/dy_config.py DEFAULTS + config.schema.json default + setup/presets/*.yaml + 测试断言 |
| 修改转录管线 | scripts/transcribe_only.py + scripts/transcribe_archive.py 双实现需保持行为一致(时间戳/去重/输出格式) |
| 新增脚本 | 放 scripts/ + tests + AGENTS.md 运行示例 |
| 修改安全边界(rmtree/注入防护) | transcribe_single.py _is_safe_work_dir / analyze_visual_needs.py 边界声明 + 对应 RED 测试 |
| 修改设置向导 | setup/setup_douyin_agent_kit.py + tests/test_setup_wizard.py + AGENT_SETUP 生成逻辑 |
| 修改技能文档 | skills/*/SKILL.md + 保持 Agent 无关声明(工具名仅示例) |
隐私与安全
- 严禁提交真实 Cookie、账号、抖音号、博主名、持牌编号到仓库(含 git 历史)。
- 转录文本视为不可信数据:拼接进 LLM prompt 时保留数据边界声明(
analyze_visual_needs.py)。 - 删除目录前必须过
_is_safe_work_dir校验;绝不 rmtree 未经验证的路径。
提交规范
- 分支:
fix/<描述>或feat/<描述>,不直接推 main。 - 提交信息:
[RED] tests: .../[GREEN] feat: .../docs: .../fix: ...。
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.
- 6d ago First seen · 48 lines · 846 tokens per session scan A 02d46436d024
douyin-agent-kit copilot-instructions.md is an instructions file published in the GitHub repository liusencomic-cyber/douyin-agent-kit (2 stars, last pushed 6d ago), licensed MIT. It adds 846 tokens to every session, about $0.0042 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-31.
Other instructions, from other repositories
osaurus AGENTS.md
AGENTS.md instructions for osaurus-ai/osaurus, covering codex configuration - osaurus-staging, build & test, keychain tip (optional), osaurus release proof and pr reporting and model runtime non-negotiables.
openmed AGENTS.md
AGENTS.md instructions for maziyarpanahi/openmed, covering repository guidelines, project structure & module organization, build, test, and development commands, linting and formatting and coding style & architecture rules.
vllm.cpp AGENTS.md
AGENTS.md instructions for mudler/vllm.cpp, covering agents.md: the rules, start here, history is git, every change starts from an issue and spec before code.
Logue CLAUDE.md
Claude Code instructions for bitwize-ai/Logue, covering logue — development guidelines, project overview, running the build you just made, where documentation goes and dependencies.
pdfmux CLAUDE.md
Claude Code instructions for NameetP/pdfmux, covering pdfmux — agent instructions, project, commands, python and site.
Bonsai-demo AGENTS.md
AGENTS.md instructions for PrismML-Eng/Bonsai-demo, covering agent guide — tuning the bonsai demo, why the 27b models (what to show off), the models, knobs that matter (27b) and adding mcp servers.