douyin-agent-kit copilot-instructions.md

douyin-agent-kit copilot-instructions.md is an instructions file for GitHub Copilot from liusencomic-cyber/douyin-agent-kit. It costs 846 tokens per session, scanned A, original, MIT.

A set of GitHub Copilot instructions for the Douyin Agent Kit repository. It documents the repository's language, style, testing, configuration, and maintenance rules.

In plain words
What is it for?
Use it when modifying configuration, transcription, audio or vision providers, scripts, tests, documentation, or commit messages in that repository.
Why use it?
It gives coding agents consistent rules for making changes in a Python project whose documentation is mainly in Simplified Chinese. It also shows which related files and tests must change together.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file. Also seen: mentions AGENTS.md.

Install

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.

agentmods
npx agentmods add instructions/liusencomic-cyber/douyin-agent-kit/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/liusencomic-cyber/douyin-agent-kit

Made for: GitHub Copilot.

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 douyin-agent-kit copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/liusencomic-cyber/douyin-agent-kit/copilot-instructions.svg)](https://agentmods.dev/instructions/liusencomic-cyber/douyin-agent-kit/copilot-instructions)
Your own site
<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>
Per session 846 This file is loaded in full into every session.
When invoked 846 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.00846 $0.00846
Opus 5 $0.00423 $0.00423
Sonnet 5 $0.00169 $0.00169
Haiku 4.5 $0.00085 $0.00085

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

Security

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.

.github/copilot-instructions.md · 48 lines

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: ...
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. 6d ago First seen · 48 lines · 846 tokens per session scan A 02d46436d024

Subscribe to this mod's changes

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.