AgentSkillsCN

Init

为平台初始化Forge。当用户提出“设置Forge”“初始化Forge”“配置新的平台适配器”“搭建内容模板”或“运行‘forge init’”时,应使用此技能。它可完成平台检测、内容搭建,以及初始配置的生成。

SKILL.md
--- frontmatter
name: Init
description: Initialize Forge for a platform. This skill should be used when the user asks to set up Forge, initialize Forge, configure a new platform adapter, scaffold content templates, or run "forge init". Handles platform detection, content scaffolding, and initial config generation.
version: 0.1.0

Forge Init

Initialize Forge for an AI coding platform. Detects the platform, scaffolds content templates (Identity, Preferences, Goals), creates config.yaml, and generates platform-specific config files.

Usage

Run the init script via Bash:

bash
# Auto-detect platform
bash Core/bin/forge-init.sh

# Explicit platform
bash Core/bin/forge-init.sh --platform cursor

# Use an existing Obsidian vault for content
bash Core/bin/forge-init.sh --external-vault /path/to/vault/Orchestration

# Overwrite existing config
bash Core/bin/forge-init.sh --force

Supported Platforms

PlatformOutput
claude-codeAdapters/claude-code/CLAUDE.md
cursorAdapters/cursor/rules/*.mdc (4 modular rules)
copilotAdapters/copilot/copilot-instructions.md
opencodeAdapters/opencode/AGENTS.md

What It Does

  1. Detects platform from project markers (.cursor/, CLAUDE.md, etc.)
  2. Scaffolds content from Modules/forge-avatar/scaffold/ into Orchestration/ (skips existing files)
  3. Creates config.yaml with platform and content path
  4. Generates platform config by calling forge-update

After init, edit the scaffolded files in Orchestration/ and run /Update to regenerate.