본문으로 건너뛰기
cccskills
무료GitHub에 공개

athena-init

项目初始化。每个新项目首次使用 Athena 时运行。扫描项目、生成环境脚本、创建 .ai_state/ schema。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

/athena-init — 项目初始化

参考: https://code.claude.com/docs/en/skills

1. CC 原生初始化

无 CLAUDE.md → 运行 /init, 生成后追加: "本项目使用 VibeCoding Athena, 开发用 /athena-dev" 已有 CLAUDE.md → 跳过。

2. 项目扫描

ls package.json pyproject.toml Cargo.toml go.mod build.gradle pom.xml 2>/dev/null
cat package.json 2>/dev/null | grep -A5 '"scripts"'
ls jest.config* vitest.config* pytest.ini .eslintrc* ruff.toml biome.json 2>/dev/null

3. 创建 .ai_state/ 目录树 (v9.6 schema)

mkdir -p .ai_state/details/reviews
mkdir -p .ai_state/details/tasks-archive

4. 拷贝模板到 .ai_state/

从 ~/.claude/skills/pace/templates/ 复制 (必须全部, 缺一不可):

  • _index.md → .ai_state/_index.md (单一入口, 铁律 8)
  • details/tasks-current.md
  • details/progress.md
  • details/design.md
  • details/handoff.md
  • details/lessons.md
  • details/review-report.md → .ai_state/details/reviews/template.md
  • details/next.md
  • details/proposals.md
  • init.sh → .ai_state/init.sh

5. 填充 _index.md frontmatter

把扫描结果写入:

  • tech_stack (检测到的: node/python/rust/go)
  • test_cmd (从 package.json scripts.test 或 pytest 等)
  • build_cmd
  • lint_cmd
  • dev_cmd

填充 platform_features (用 claude --version 和 codex --version 2>&1):

  • cc_version
  • cx_version
  • goal_supported: 解析 cc_version, ≥ "2.1.139" 即 true
  • batch_supported: ≥ "2.1.121"
  • background_supported: ≥ "2.1.139"
  • session_memory_active: 检测 ~/.claude/projects/ 是否含 session-memory 子目录
  • cross_session_memory: 检测 ~/.claude/plugins/ 含 claude-mem 则 "claude-mem", 含 superpowers 则 "superpowers", 否则 "none"

6. 生成 init.sh

根据扫描结果定制 .ai_state/init.sh:

  • 依赖安装命令 (npm install / pip install / cargo build)
  • dev server 启动 (如有)
  • 基线测试命令
  • chmod +x .ai_state/init.sh

7. .gitignore

grep -q '.ai_state' .gitignore 2>/dev/null || echo '.ai_state/' >> .gitignore

8. 跨项目记忆推荐 (替代删除的全局 lessons)

# 检测 claude-mem 或 superpowers, 缺则软提示
if ! ls ~/.claude/plugins/ 2>/dev/null | grep -iE 'claude-mem|superpowers' > /dev/null; then
  echo "💡 推荐装 claude-mem (89k stars) 做跨项目记忆"
  echo "   /plugin install claude-mem (待加入官方 marketplace)"
  echo "   或: /athena-setup 走完整推荐流"
fi

9. Git commit

git add .ai_state/ .gitignore
git commit -m "athena: project initialized (v9.6 schema)"

10. 验证

运行 bash .ai_state/init.sh 确认脚本正常。 告知用户: "Athena 已就绪。用 /athena-dev <需求> 开始开发, 或 /athena-status 看面板。"

已有 .ai_state/ 但 schema_version != "9.6" → 提示运行 /athena-migrate 升级。 已有 .ai_state/ 且 schema_version == "9.6" → 提示用户是否重新初始化 (会重置 _index.md)。

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Athena 主入口。从需求到交付的完整工程化开发流程。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

m-xlsea/ruoyi-plus-soybean3292026년 6월 16일 업데이트

把 v9.5.5 项目的 .ai_state/ 升级到 v9.6 schema (INDEX + details/ 重构)。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

m-xlsea/ruoyi-plus-soybean3292026년 6월 16일 업데이트

Athena 全局偏好便利层。直接操作 CC 原生 ~/.claude/settings.json 的 permissions.allow/deny 和全局 CLAUDE.md。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

m-xlsea/ruoyi-plus-soybean3292026년 6월 16일 업데이트

单独运行质量审查, 不走完整开发流程。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

m-xlsea/ruoyi-plus-soybean3292026년 6월 16일 업데이트

Athena 全局安装。检查 CC 版本、装插件、配置 Codex、部署 hooks、推 claude-mem。首次使用运行一次。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

m-xlsea/ruoyi-plus-soybean3292026년 6월 16일 업데이트

Athena 状态面板。显示当前 PACE 状态、Hook 触发计数、claude-mem 状态、plugin 健康。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

m-xlsea/ruoyi-plus-soybean3292026년 6월 16일 업데이트

m-xlsea의 스킬 모두 보기

이 스킬의 문제 신고