cerebro-source-integration
Scaffold Cerebro source integrations following existing source, preview, runtime, and test patterns.
来源信息
- 仓库
- writer/cerebro
- 最近来源活动
- 2026年8月27日 21:30
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 14
- 分支
- 2
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- cerebro-source-integration
- description
- Scaffold Cerebro source integrations following existing source, preview, runtime, and test patterns.
# Cerebro Source Integration
## Instructions
1. Start from the closest existing integration under `sources/`.
2. Implement config parsing with safe defaults, strict validation, and clear error mapping.
3. Add preview behavior and runtime sync behavior only within the requested scope.
4. Protect network-facing settings against loopback, unsafe schemes, malformed URLs, unbounded responses, and pagination loops.
5. Expose the exact attributes any downstream finding rule will use, with tests for label-quality fields, fallback IDs, absent optional fields, and future/deadline timestamps.
6. Add package tests for config validation, preview decoding, pagination, and error handling.
7. Run focused source package tests, then `make changed-check`, then `make verify` when feasible.
## Boundaries
- Do not introduce new external dependencies unless explicitly requested.
- Do not add live-service tests unless they are opt-in behind environment variables.
- Canonicalize provider-controlled identifiers before they reach URNs, event IDs, or fingerprints — see the finding-rule design notes in [AGENTS.md](../../../AGENTS.md).
在 GitHub 查看