Borrowing it
Nothing to install: this file belongs to liusencomic-cyber/douyin-agent-kit. 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/liusencomic-cyber/douyin-agent-kit/main/.github/copilot-instructions.mdgit 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/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/liusencomic-cyber/douyin-agent-kit/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/liusencomic-cyber/douyin-agent-kit/copilot-instructions.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.00846 | $0.00846 |
| Opus 5.5 | $0.00338 | $0.00338 |
| Sonnet 5.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 1mo 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.
- 1mo 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 7d ago), licensed MIT. It adds 846 tokens to every session, about $0.0034 per session on Opus 5.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
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).
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.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
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.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deno copilot-instructions.md
Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.