2026-10-18 10:16:04 +08:00
|
|
|
|
# Vibe Coding工具箱:资源分三域,测试与校验维护入口统一在.github。
|
2026-10-18 01:42:36 +08:00
|
|
|
|
.PHONY: help lint check-links check-details test-details check-doc-structure check-directory-docs check-metadata check-gongfa test-gongfa sync-gongfa-catalog check-gongfa-catalog test-gongfa-catalog sync-faqi-catalog check-faqi-catalog test-faqi-catalog test-source-archive check-ai-citation check-external-resources check-research-raw check-source-facts check-wiki fetch-research-raw sync-doc-toc build test clean clean-deps
|
2025-12-13 09:25:16 +08:00
|
|
|
|
|
2026-05-04 03:54:14 +08:00
|
|
|
|
MARKDOWNLINT = npx --yes markdownlint-cli@0.48.0
|
2026-10-18 10:16:04 +08:00
|
|
|
|
MAINT = .github
|
|
|
|
|
|
EXT = $(MAINT)/extensions
|
2026-10-18 01:42:36 +08:00
|
|
|
|
# 原tools/external各来源分别平铺;不能忽略整个Extensions,否则会漏掉自有工具。
|
2026-10-18 12:18:01 +08:00
|
|
|
|
SOURCE_IGNORES = --ignore .history --ignore '$(EXT)/Skill_Seekers-development/**' --ignore '$(EXT)/claude-official-skills/**' --ignore '$(EXT)/tmux/**' --ignore '$(EXT)/oh-my-tmux/**' --ignore '.github/context/research/**/raw/repository/**' --ignore '.github/context/research/facts/**' --ignore '.github/context/research/vibe-cybersecurity-cn/**' --ignore '.github/context/research/vibe-harness-cn/**' --ignore '.github/context/research/vibe-mathing-cn-public/**'
|
2026-05-04 03:54:14 +08:00
|
|
|
|
|
2025-12-13 09:25:16 +08:00
|
|
|
|
help:
|
2026-10-18 01:42:36 +08:00
|
|
|
|
@echo "Vibe Coding工具箱"
|
|
|
|
|
|
@echo "lint / check-links / check-details / test-details:Markdown格式、内链、折叠与回归"
|
|
|
|
|
|
@echo "check-doc-structure / check-directory-docs / check-metadata:阅读结构、目录职责与机器索引"
|
|
|
|
|
|
@echo "check-gongfa / test-gongfa:功法来源与既有评级协议"
|
|
|
|
|
|
@echo "sync-gongfa-catalog / check-gongfa-catalog / test-gongfa-catalog:功法单一Markdown视图"
|
|
|
|
|
|
@echo "sync-faqi-catalog / check-faqi-catalog / test-faqi-catalog:法器来源与单一Markdown视图"
|
|
|
|
|
|
@echo "test-source-archive:原始字节、摘要、来源边界和文集导航契约"
|
|
|
|
|
|
@echo "check-ai-citation / check-external-resources:AI引用与资源登记"
|
|
|
|
|
|
@echo "check-research-raw / check-source-facts:研究事实及来源镜像"
|
|
|
|
|
|
@echo "check-wiki WIKI_DIR=<本地目录>:独立Wiki检查"
|
|
|
|
|
|
@echo "fetch-research-raw:显式联网刷新研究原始事实,不属于日常测试"
|
|
|
|
|
|
@echo "sync-doc-toc:同步自有文档目录;生成文集由各自sync目标维护"
|
|
|
|
|
|
@echo "build:说明本仓无需构建;test:运行本地质量检查"
|
|
|
|
|
|
@echo "clean / clean-deps:现有清理入口,有删除副作用;不作为验证命令执行"
|
2025-12-13 09:25:16 +08:00
|
|
|
|
|
2026-05-04 03:54:14 +08:00
|
|
|
|
lint:
|
2026-10-18 10:16:04 +08:00
|
|
|
|
@$(MARKDOWNLINT) --config .github/lint_config.json $(SOURCE_IGNORES) '**/*.md' '.github/context/**/*.md' '.github/skills/**/*.md' '.github/extensions/**/*.md' '.github/lib/**/*.md'
|
2025-12-13 09:25:16 +08:00
|
|
|
|
|
2026-05-02 03:55:45 +08:00
|
|
|
|
check-links:
|
2026-10-18 10:16:04 +08:00
|
|
|
|
@python3 $(MAINT)/check-local-links.py
|
2025-12-13 09:25:16 +08:00
|
|
|
|
|
2026-05-03 22:21:18 +08:00
|
|
|
|
check-details:
|
2026-10-18 10:16:04 +08:00
|
|
|
|
@python3 $(MAINT)/check-markdown-details.py
|
2026-05-03 22:21:18 +08:00
|
|
|
|
|
2026-10-17 04:52:32 +08:00
|
|
|
|
test-details:
|
2026-10-18 10:16:04 +08:00
|
|
|
|
@python3 $(MAINT)/test-markdown-details.py
|
2026-10-17 04:52:32 +08:00
|
|
|
|
|
2026-05-04 03:32:44 +08:00
|
|
|
|
check-doc-structure:
|
2026-10-18 10:16:04 +08:00
|
|
|
|
@python3 $(MAINT)/check-doc-structure.py
|
2026-05-04 03:32:44 +08:00
|
|
|
|
|
2026-05-04 03:40:08 +08:00
|
|
|
|
check-directory-docs:
|
2026-10-18 10:16:04 +08:00
|
|
|
|
@python3 $(MAINT)/check-directory-docs.py
|
2026-05-04 03:40:08 +08:00
|
|
|
|
|
2026-05-04 00:14:13 +08:00
|
|
|
|
check-metadata:
|
2026-10-18 10:16:04 +08:00
|
|
|
|
@python3 $(MAINT)/check-metadata.py
|
2026-05-04 00:14:13 +08:00
|
|
|
|
|
2026-10-08 12:58:44 +08:00
|
|
|
|
check-gongfa:
|
2026-10-18 10:16:04 +08:00
|
|
|
|
@python3 $(MAINT)/check-gongfa.py
|
2026-10-08 12:58:44 +08:00
|
|
|
|
|
|
|
|
|
|
test-gongfa:
|
2026-10-18 10:16:04 +08:00
|
|
|
|
@python3 $(MAINT)/test-gongfa.py
|
2026-10-08 12:58:44 +08:00
|
|
|
|
|
|
|
|
|
|
sync-gongfa-catalog:
|
2026-10-18 01:42:36 +08:00
|
|
|
|
@python3 $(EXT)/sync-gongfa-catalog.py --write
|
2026-10-08 12:58:44 +08:00
|
|
|
|
|
|
|
|
|
|
check-gongfa-catalog:
|
2026-10-18 01:42:36 +08:00
|
|
|
|
@python3 $(EXT)/sync-gongfa-catalog.py --check
|
2026-10-08 12:58:44 +08:00
|
|
|
|
|
|
|
|
|
|
test-gongfa-catalog:
|
2026-10-18 10:16:04 +08:00
|
|
|
|
@python3 $(MAINT)/test-gongfa-catalog.py
|
2026-10-08 12:58:44 +08:00
|
|
|
|
|
2026-10-09 19:35:19 +08:00
|
|
|
|
sync-faqi-catalog:
|
2026-10-18 01:42:36 +08:00
|
|
|
|
@python3 $(EXT)/sync-faqi-catalog.py --write
|
2026-10-09 19:35:19 +08:00
|
|
|
|
|
|
|
|
|
|
check-faqi-catalog:
|
2026-10-18 01:42:36 +08:00
|
|
|
|
@python3 $(EXT)/sync-faqi-catalog.py --check
|
2026-10-09 19:35:19 +08:00
|
|
|
|
|
|
|
|
|
|
test-faqi-catalog:
|
2026-10-18 10:16:04 +08:00
|
|
|
|
@python3 $(MAINT)/test-faqi-catalog.py
|
2026-10-18 01:42:36 +08:00
|
|
|
|
|
|
|
|
|
|
test-source-archive:
|
2026-10-18 10:16:04 +08:00
|
|
|
|
@python3 $(MAINT)/test-source-archive.py
|
2026-10-09 19:35:19 +08:00
|
|
|
|
|
2026-05-04 01:25:22 +08:00
|
|
|
|
check-ai-citation:
|
2026-10-18 10:16:04 +08:00
|
|
|
|
@python3 $(MAINT)/check-ai-citation.py
|
2026-05-04 01:25:22 +08:00
|
|
|
|
|
2026-07-03 08:20:22 +08:00
|
|
|
|
check-external-resources:
|
2026-10-18 10:16:04 +08:00
|
|
|
|
@python3 $(MAINT)/check-external-resources.py
|
2026-07-03 08:20:22 +08:00
|
|
|
|
|
|
|
|
|
|
check-research-raw:
|
2026-10-18 10:16:04 +08:00
|
|
|
|
@python3 $(MAINT)/check-research-raw.py
|
2026-07-03 08:20:22 +08:00
|
|
|
|
|
2026-09-14 22:37:59 +08:00
|
|
|
|
check-source-facts:
|
2026-10-18 10:16:04 +08:00
|
|
|
|
@python3 $(MAINT)/check-source-facts.py
|
2026-09-14 22:37:59 +08:00
|
|
|
|
|
2026-05-17 13:15:05 +08:00
|
|
|
|
check-wiki:
|
2026-10-18 10:16:04 +08:00
|
|
|
|
@python3 $(MAINT)/check-wiki.py --wiki-dir "$${WIKI_DIR:-/tmp/vibe-coding-cn.wiki}"
|
2026-05-17 13:15:05 +08:00
|
|
|
|
@$(MARKDOWNLINT) --config .github/lint_config.json "$${WIKI_DIR:-/tmp/vibe-coding-cn.wiki}"/*.md
|
|
|
|
|
|
|
2026-07-03 08:20:22 +08:00
|
|
|
|
fetch-research-raw:
|
2026-10-18 01:42:36 +08:00
|
|
|
|
@python3 $(EXT)/fetch-research-raw.py
|
2026-07-03 08:20:22 +08:00
|
|
|
|
|
2026-05-04 03:47:52 +08:00
|
|
|
|
sync-doc-toc:
|
2026-10-18 01:42:36 +08:00
|
|
|
|
@python3 $(EXT)/sync-doc-toc.py
|
2026-05-04 03:47:52 +08:00
|
|
|
|
|
2026-05-02 03:55:45 +08:00
|
|
|
|
build:
|
2026-10-18 01:42:36 +08:00
|
|
|
|
@echo "无需构建;本仓是文档、既有Skills和小工具的资源集合。"
|
2026-05-02 03:55:45 +08:00
|
|
|
|
|
2026-10-18 01:42:36 +08:00
|
|
|
|
test: lint check-links check-details test-details check-doc-structure check-directory-docs check-metadata check-gongfa test-gongfa check-gongfa-catalog test-gongfa-catalog check-faqi-catalog test-faqi-catalog test-source-archive check-ai-citation check-external-resources check-research-raw check-source-facts
|
|
|
|
|
|
@echo "本地质量检查完成;不代表工具效果、运行可用性或许可批准。"
|
2025-12-13 09:25:16 +08:00
|
|
|
|
|
2026-05-04 03:47:52 +08:00
|
|
|
|
clean: clean-deps
|
2026-05-02 03:55:45 +08:00
|
|
|
|
@find . -type d -name '__pycache__' -prune -exec rm -rf {} +
|
2026-10-18 01:42:36 +08:00
|
|
|
|
@rm -rf .github/extensions/prompts-library/prompt_jsonl
|
2026-05-04 03:47:52 +08:00
|
|
|
|
|
|
|
|
|
|
clean-deps:
|
|
|
|
|
|
@rm -rf node_modules
|