video-clip-agent: Instructions file for Claude Code

CLAUDE.md

video-clip-agent CLAUDE.md is an instructions file for Claude Code from neopen/video-clip-agent. It costs 1,191 tokens per session, scanned A, original, MIT.

Project instructions for PenClip, an AI-assisted video editing system driven by natural-language requests. They describe its layered structure, key entry points and compatibility modules.

In plain words
What is it for?
Use them when developing PenClip’s video analysis, clip matching, automatic editing, orchestration, services or API layers.
Why use it?
They give the agent rules for keeping dependencies in the right direction and for knowing where real logic belongs when the project is being changed.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths.

This is neopen/video-clip-agent's own configuration. It tells Claude Code how to work on video-clip-agent 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 video-clip-agent configures →

Reuse

Borrowing it

Nothing to install: this file belongs to neopen/video-clip-agent. 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/neopen/video-clip-agent/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/neopen/video-clip-agent

Made for: Claude Code.

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 video-clip-agent CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/neopen/video-clip-agent/claude-md/github.svg)](https://agentmods.dev/instructions/neopen/video-clip-agent/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/neopen/video-clip-agent/claude-md"><img src="https://agentmods.dev/badge/instructions/neopen/video-clip-agent/claude-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 video-clip-agent CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/neopen/video-clip-agent/claude-md"><img src="https://agentmods.dev/badge/instructions/neopen/video-clip-agent/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,191 This file is loaded in full into every session.
When invoked 1,191 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.01191 $0.01191
Opus 5.5 $0.00476 $0.00476
Sonnet 5.5 $0.00238 $0.00238
Haiku 4.5 $0.00119 $0.00119

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

Security

Grade A, and why

video-clip-agent CLAUDE.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 22d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

CLAUDE.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PenClip — 视频混剪智能体

基于星型中枢分发架构的 AI 视频混剪系统:自然语言驱动视频分析、片段匹配与自动合成。核心理念「人机协同」—— AI 辅助而非替代创作者。

当前状态

  • 版本:V0.1(DDD 分层骨架),开发分支 dev
  • 顶层架构:星型中枢分发(CentralHub)+ 线性链路工作流(首个注册能力)
  • 意图识别:V0.1 关键词匹配(IntentRecognizer),V0.2 才升级 LLM 语义理解
  • 图编排:LangGraphEngine V0.1 仅 stub,V0.2 真正接入 LangGraph

分层架构(依赖方向:外层 → 内层,内层禁止反向依赖)

domain/          领域层:实体(Pydantic) + 值对象(dataclass/enum) + 仓储接口 —— 零依赖
core/            应用层:hub 分发 / orchestration / state / event —— 依赖 domain
agents/          智能体:BaseAgent + Planner/Analyzer/Matcher/Composer —— 依赖 domain+core
services/        服务层:llm/clip/ffmpeg/scene_detect/vector/file —— 多为 V0.2 stub
infrastructure/  基础设施:postgres/minio/redis/cache/messaging —— 实现仓储接口,多为 stub
api/             接入层:v1 REST / middleware / websocket / schemas
cli/             CLI 入口
plugins/         插件系统 + Docker 沙箱(V2.0)

遗留层(仍在使用,逐步迁移):client/(多 AI 提供商)、tools/(6 个视频分析工具)、utils/(ffmpeg/redis/path/log 等)、config/config.py、logger.py

Bridge 层(向后兼容转发,勿在此改逻辑)

顶层 hub/、graph/、state/ 是兼容转发模块,真实实现在 core/、domain/:

  • penclip.hub.hub_core → penclip.core.hub.central_hub(get_hub/CentralHub/HubRequest/HubResponse)
  • penclip.graph.hub_graph → penclip.core.orchestration.graph_engine(get_graph/LangGraphEngine)
  • penclip.state.models → IntentType(domain) + TaskLifecycleStage(core.state)

关键入口

from penclip.hub.hub_core import get_hub           # 中枢单例
from penclip.graph.hub_graph import get_graph       # 图引擎(stub)
from penclip.state.models import IntentType, TaskLifecycleStage
from penclip.domain.value_objects.intent import IntentType  # 真实定义处

启动:python main.py(→ penclip.app:app FastAPI,默认 http://localhost:8000,`/docs` 交互文档)

核心契约(开发必读)

  • IntentType(str Enum):30+ 意图,6 类 —— 规划/分析/素材/效果/状态/通用
  • CapabilityDeclaration(dataclass):name + intents + input_schema/output_schema + risk_level + version
  • BaseAgent(ABC):declare_capabilities() + execute(params, context),经 CentralHub.register_agent() 接入
  • ExecutionResult(dataclass):success/data/message/suggestions/status
  • AssemblyState(Pydantic):全局会话状态(assets/slots/analysis_results/match_results/global_context/...)

Read the full file on GitHub · 58 lines

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. 22d ago Changed · -20 tokens per session 0736075800fd
  2. 2mo ago First seen · 58 lines · 1,211 tokens per session scan A cd99c2989649

Subscribe to this mod's changes

video-clip-agent CLAUDE.md is an instructions file published in the GitHub repository neopen/video-clip-agent (45 stars, last pushed 9d ago), licensed MIT. It adds 1,191 tokens to every session, about $0.0048 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-30.

Related

video-clip-agent CLAUDE.md compared with instructions from other repositories

video-clip-agent CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
video-clip-agent CLAUDE.mdneopen/video-clip-agentInstructions file459d agoMITA1,191Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot