Skip to content

web-abin/OpenGeno / skills/geno-init

geno-init

Unverified

Initialize an OpenGeno feature tree for a project. Asks the user to pick a documentation language (English or Chinese, default English), a drift mode, and a generation mode (stub-only by default, or one-shot full docs that fills every L3 section now). Scans the codebase, proposes a module breakdown, generates the L1 root index, L2 module indexes and L3 feature docs in the chosen language, writes .feat-tree.json, and injects the OpenGeno workflow rules into CLAUDE.md (and AGENTS.md if present). Use when starting OpenGeno on a new project. Run once per project.

FileKindSize
SKILL.mdskill md11.6 KB
reference.mdmarkdown10.1 KB
scripts/drift-check.shexecutablescript2.8 KB
scripts/post-edit-warn.shexecutablescript1.9 KB
scripts/stop-check.shexecutablescript2.8 KB
templates/claude-md-injection.mdmarkdown3.7 KB
templates/claude-md-injection.zh.mdmarkdown3.6 KB
templates/feat-tree.jsonconfig93 B
templates/feature-logic.mdmarkdown1.2 KB
templates/feature-logic.zh.mdmarkdown1.1 KB
templates/feature-ui.mdmarkdown2.1 KB
templates/feature-ui.zh.mdmarkdown2.0 KB
templates/module-index.mdmarkdown1.1 KB
templates/module-index.zh.mdmarkdown1011 B
templates/root-index.mdmarkdown1.4 KB
templates/root-index.zh.mdmarkdown1.3 KB

scripts/post-edit-warn.sh

View on GitHub
#!/usr/bin/env bash
# OpenGeno PostToolUse hook.
#
# Reads the file path from the tool input ($CLAUDE_TOOL_INPUT_file_path or
# similar; falls back to scanning recent stdin for a path).
#
# If the touched file is listed in any L3 doc's `code:` block, emit a
# reminder that the corresponding doc may need updating.
#
# Always exits 0 — this is a soft reminder, never blocks. Drift gating
# happens at Stop hook (stop-check.sh).

set -u

[ -d feat-tree ] || exit 0

# Try common Claude Code env vars that expose the touched path
TARGET=""
for v in CLAUDE_TOOL_INPUT_file_path CLAUDE_FILE_PATH CLAUDE_TARGET_FILE; do
  VAL=$(eval "echo \${$v:-}")
  if [ -n "$VAL" ]; then
    TARGET="$VAL"
    break
  fi
done

# If no env var, try to read from stdin (some Claude Code versions pipe JSON)
if [ -z "$TARGET" ] && [ ! -t 0 ]; then
  STDIN_BUF=$(cat 2>/dev/null)
  TARGET=$(echo "$STDIN_BUF" \
    | grep -o '"file_path"[[:space:]]*:[[:space:]]*"[^"]*"' \
    | head -1 \
    | sed 's/.*"file_path"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/')
fi

[ -z "$TARGET" ] && exit 0

# Don't warn for edits inside the tree itself
case "$TARGET" in
  */feat-tree/*|feat-tree/*) exit 0 ;;
esac

# Find any L3 doc whose code: list contains this path
# Use grep -F for literal match; quick and good enough for soft warning
RELATIVE_TARGET="${TARGET#$(pwd)/}"
MATCHES=$(grep -rl -F "$RELATIVE_TARGET" feat-tree/ 2>/dev/null | grep '\.md$' || true)

if [ -z "$MATCHES" ]; then
  exit 0
fi

# Filter to actual og-feature docs
HITS=""
for DOC in $MATCHES; do
  if head -20 "$DOC" 2>/dev/null | grep -q "^type:[[:space:]]*og-feature"; then
    HITS="$HITS $DOC"
  fi
done

[ -z "$HITS" ] && exit 0

echo "[opengeno] you edited $RELATIVE_TARGET"
echo "[opengeno] this file is referenced by:"
for DOC in $HITS; do
  echo "  - $DOC"
done
echo "[opengeno] if your edit changed user-visible behavior, update the doc and bump last_synced_commit (see CLAUDE.md \"Update after changing\")."

exit 0
rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
claude-apianthropics/skillsReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file).Stars: 198kUpdated Claude CodeCodexUnverifiedInstall
doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.Stars: 198kUpdated Claude CodeCodexVerifiedInstall