init-tech-declaration

仓库创建 2026年7月5日最近提交 22 天前SkillHot 收录 22 天前
▸ 精选理由

加快后续会话的环境识别,维持配置一致性。

这个 Skill 做什么

检测项目技术栈并生成 rules/tech.md 作为单一技术声明。

自动检测项目的技术栈并生成 rules/tech.md,作为项目的单一技术声明,后续会话就能跳过重复探测。首次采用框架、加入或移除技术,或怀疑声明与代码不一致时运行。特点是把技术清单固化成机器可读的文件,节省每次会话重新识别环境的时间并作为统一的来源。

▸ 展开 SKILL.md 英文原文

Detects the project's tech and writes a `rules/tech.md` file so future sessions skip runtime detection. Run once when adopting the harness, and again whenever the tech changes. Triggers on "init tech", "declare my tech", "refresh tech declaration".

开发编程技术声明项目检测自动化配置通用
0
Stars
0
Forks
25
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/kulapoo/opencode-agent-harness/main/skills/init-tech-declaration/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/kulapoo/opencode-agent-harness/main/skills/init-tech-declaration/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Init Tech Declaration

Generates or refreshes `rules/tech.md` — the single source of truth for the
project's tech. This file is injected into the system prompt via `opencode.json`
`instructions` and survives compaction.

## When to Use

- First time adopting this harness on a project
- Adding or removing a tech (e.g. new frontend, dropped service)
- Drift detected ("declaration says rust, but .py files are being edited")
- Major refactor that restructured directories

## Steps

1. Run detect-tech.md (manifest glob + proximity, Steps 1–3) from this skill's
   directory: `Read skills/init-tech-declaration/detect-tech.md`.
2. Map detected tech to dir names (e.g. `Cargo.toml` → `rust`, `packag
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有