Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 3 additions & 19 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ snapshot_managed_release_paths() {
"CHANGELOG.md"
"skills/zh/header.md.template"
"skills/en/header.md.template"
"Codex/Skills/CN/AGENTS.md"
"Codex/Skills/EN/AGENTS.md"
"Claude/Skills/CN/CLAUDE.md"
"Claude/Skills/EN/CLAUDE.md"
"Codex/Skills/CN/skills/sopify"
"Codex/Skills/EN/skills/sopify"
"Claude/Skills/CN/skills/sopify"
"Claude/Skills/EN/skills/sopify"
)
local path
local src
Expand Down Expand Up @@ -91,10 +83,10 @@ trap on_exit EXIT
is_release_relevant_file() {
local path="$1"
case "$path" in
runtime/*|installer/*|skills/*|Codex/Skills/*|Claude/Skills/*|README.md|README.zh-CN.md|CHANGELOG.md)
runtime/*|installer/*|skills/*|README.md|README.zh-CN.md|CHANGELOG.md)
return 0
;;
scripts/sopify_runtime.py|scripts/model_compare_runtime.py|scripts/check-runtime-smoke.sh|scripts/release-sync.sh|scripts/release-preflight.sh|scripts/sync-skills.sh|scripts/check-skills-sync.sh|scripts/check-version-consistency.sh)
scripts/sopify_runtime.py|scripts/model_compare_runtime.py|scripts/check-runtime-smoke.sh|scripts/release-sync.sh|scripts/release-preflight.sh|scripts/sync-skills.sh|scripts/check-version-consistency.sh)
return 0
;;
*)
Expand Down Expand Up @@ -159,15 +151,7 @@ git -C "$ROOT_DIR" add \
README.zh-CN.md \
CHANGELOG.md \
skills/zh/header.md.template \
skills/en/header.md.template \
Codex/Skills/CN/AGENTS.md \
Codex/Skills/EN/AGENTS.md \
Claude/Skills/CN/CLAUDE.md \
Claude/Skills/EN/CLAUDE.md \
Codex/Skills/CN/skills/sopify \
Codex/Skills/EN/skills/sopify \
Claude/Skills/CN/skills/sopify \
Claude/Skills/EN/skills/sopify
skills/en/header.md.template

cat >"$STATE_FILE" <<EOF
RELEASE_VERSION=$RELEASE_VERSION
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,6 @@ jobs:
with:
fetch-depth: 0

- name: Sync skills
run: bash scripts/sync-skills.sh

- name: Ensure sync produced no changes
run: git diff --exit-code

- name: Check skills sync
run: bash scripts/check-skills-sync.sh

- name: Check version consistency
run: bash scripts/check-version-consistency.sh

Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ __pycache__/
.sopify-skills/plan/_registry.yaml

evals/skill_eval_report.json

# Generated host prompt distributions. Source of truth is skills/{zh,en}.
Codex/Skills/
Claude/Skills/
Copilot/Skills/
5 changes: 3 additions & 2 deletions .sopify-skills/blueprint/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -665,8 +665,9 @@ _治理期望表_
### Prompt 镜像治理原则

- prompt asset 属于 payload/install surface(P4a keep-list 已冻结此消费面)
- 现有 Claude/Skills/ 和 Codex/Skills/ 目录树是 legacy exception,只维护现有内容,不再扩张
- 新宿主不进现有目录树结构;新宿主如需 prompt asset,走 payload 机制
- `skills/{zh,en}` 是 prompt-layer source of truth;宿主安装产物由 installer / host adapter 渲染
- `Codex/Skills/` 和 `Claude/Skills/` 仅可作为本地 generated cache,不再进入 git source-of-truth
- 新宿主不进 legacy 目录树结构;新宿主如需 prompt asset,走 host adapter / payload 机制
- 讨论框架不是"要不要再开目录树",而是"payload 机制是否满足需求"


Expand Down
2 changes: 1 addition & 1 deletion .sopify-skills/blueprint/skill-standards-refactor.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
统一逻辑模型:

```text
Codex/Skills/{CN,EN}/skills/sopify/my-skill/
skills/{zh,en}/skills/sopify/my-skill/
├── SKILL.md
├── scripts/
├── references/
Expand Down
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,36 @@ Format: Summary → Changed → Plan Packages. File-level details live in `git l

## [Unreleased]

## [2026-05-27.161019] - 2026-05-27

### Summary

- Changes across: Docs, Runtime, Scripts, Skills, Tests, Changed.

### Changed

- **Docs**: Refined public documentation (5 files)
- **Runtime**: Updated runtime internals (2 files)
- **Scripts**: Adjusted maintenance scripts (5 files)
- **Skills**: Synced prompt-layer skills (92 files)
- **Tests**: Updated automated coverage (3 files)
- **Changed**: Updated project files (4 files)

## [2026-05-27.160548] - 2026-05-27

### Summary

- Changes across: Docs, Runtime, Scripts, Skills, Tests, Changed.

### Changed

- **Docs**: Refined public documentation (5 files)
- **Runtime**: Updated runtime internals (2 files)
- **Scripts**: Adjusted maintenance scripts (5 files)
- **Skills**: Synced prompt-layer skills (92 files)
- **Tests**: Updated automated coverage (2 files)
- **Changed**: Updated project files (2 files)

## [2026-05-27.132948] - 2026-05-27

### Summary
Expand Down
4 changes: 1 addition & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Thanks for your interest in contributing to Sopify.
## Prompt-layer and Skill Authoring

- `skills/{zh,en}` is the prompt-layer source of truth. Each language directory contains `header.md.template` (host-agnostic template) and `skills/sopify/` (skill packages).
- `Codex/Skills/{CN,EN}` and `Claude/Skills/{CN,EN}` are generated distribution outputs rendered from `skills/` via `scripts/sync-skills.sh`. Do not hand-edit these files.
- `Codex/Skills/{CN,EN}` and `Claude/Skills/{CN,EN}` are gitignored. They can be generated locally via `bash scripts/sync-skills.sh` for debugging or inspecting the traditional host layout, but are not part of release, CI, or pre-commit.
- `runtime/builtin_skill_packages/*/skill.yaml` is the source of truth for builtin machine metadata.
- For skill package changes, follow the `SKILL.md` files under [skills/zh/skills/sopify/](./skills/zh/skills/sopify/) / [skills/en/skills/sopify/](./skills/en/skills/sopify/).

Expand Down Expand Up @@ -100,8 +100,6 @@ Run the minimum checks that match your change scope.
Prompt-layer and metadata sync:

```bash
bash scripts/sync-skills.sh
bash scripts/check-skills-sync.sh
bash scripts/check-version-consistency.sh
python3 scripts/generate-builtin-catalog.py
python3 -m pytest tests -v
Expand Down
4 changes: 1 addition & 3 deletions CONTRIBUTING_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## Prompt 层与 Skill Authoring

- `skills/{zh,en}` 是 prompt-layer 真源。每个语言目录包含 `header.md.template`(宿主无关模板)和 `skills/sopify/`(skill 包)。
- `Codex/Skills/{CN,EN}` 和 `Claude/Skills/{CN,EN}` 是由 `scripts/sync-skills.sh` 从 `skills/` 渲染生成的分发产物,不应手工编辑
- `Codex/Skills/{CN,EN}` 和 `Claude/Skills/{CN,EN}` 已被 git 忽略。可通过 `bash scripts/sync-skills.sh` 本地生成,用于调试或查看传统宿主目录结构,但不参与发版、CI 或 pre-commit
- `runtime/builtin_skill_packages/*/skill.yaml` 是 builtin machine metadata 真源。
- Skill package 变更时,参考 [skills/zh/skills/sopify/](./skills/zh/skills/sopify/) / [skills/en/skills/sopify/](./skills/en/skills/sopify/) 下各自的 `SKILL.md`。

Expand Down Expand Up @@ -106,8 +106,6 @@ python3 scripts/render-release-installers.py --release-tag "$TAG" --output-dir "
Prompt 层与 metadata 同步:

```bash
bash scripts/sync-skills.sh
bash scripts/check-skills-sync.sh
bash scripts/check-version-consistency.sh
python3 scripts/generate-builtin-catalog.py
python3 -m pytest tests -v
Expand Down
Loading
Loading