diff --git a/.claude/skills/loop-start/SKILL.md b/.claude/skills/loop-start/SKILL.md index 2e68f05..f5e52dd 100644 --- a/.claude/skills/loop-start/SKILL.md +++ b/.claude/skills/loop-start/SKILL.md @@ -37,21 +37,21 @@ The CURRENT WORKING DIRECTORY is the agent's home. All files go here. ## Setup Step 1: Identity (no MCP needed) -Ask the user two questions: -1. "What do you want to name your agent?" — use this as `AGENT_NAME` -2. "What should your agent focus on? (e.g. DeFi, security audits, building tools, trading, art — or leave blank for a general-purpose agent)" +Ask the user ONE question: +"What should your agent focus on? (e.g. DeFi, security audits, building tools, trading, art — or leave blank for a general-purpose agent)" + +Use `"Agent"` as a placeholder name in SOUL.md — the real display name is assigned by the AIBTC platform during registration (Step 5) and will replace this placeholder then. ### Create `SOUL.md` **Do NOT just fill in a template.** Write a personalized SOUL.md for this specific agent. Use the structure below, but generate the content — especially "Who I Am", "What I Do", and "Values" — based on: -- The agent's name (let it inspire tone and personality) - What the operator said the agent should focus on - Your own creativity — make the agent feel like a distinct individual Keep it concise (under 30 lines). The agent will read this every cycle to remember who it is. ```markdown -# +# Agent ## Who I Am [Write 2-3 sentences. Give the agent a voice. What's its personality? @@ -367,6 +367,16 @@ fi Parse the response: `displayName=$(echo "$BODY" | jq -r '.displayName')` and `sponsorApiKey=$(echo "$BODY" | jq -r '.sponsorApiKey')`. +**Update SOUL.md with the real agent name** — replace the `# Agent` placeholder header with the display name returned by the API: + +```bash +if [[ -n "$displayName" ]]; then + sed -i "s/^# Agent\$/# $displayName/" SOUL.md +fi +``` + +This is the canonical name for this agent — assigned deterministically by aibtc.com based on the Bitcoin address. All subsequent references use `$displayName`. + The response includes `displayName` and `sponsorApiKey`. Display to user: ``` @@ -497,7 +507,7 @@ Read the CLAUDE.md template that was installed alongside this skill. Look for it 3. If still not found, search: `Glob("**/CLAUDE.md")` in `.claude/skills/` and `.agents/skills/` Read that template file, then replace all `[YOUR_...]` placeholders with actual values from earlier steps: -- `[YOUR_AGENT_NAME]` -> the agent name from Step 1 +- `[YOUR_AGENT_NAME]` -> `$displayName` from the registration response in Step 5 (the platform-assigned canonical name) - `[YOUR_WALLET_NAME]` -> wallet name from Step 4 - `[YOUR_STX_ADDRESS]` -> from Step 4 - `[YOUR_BTC_ADDRESS]` -> from Step 4 @@ -520,7 +530,7 @@ Ask the user: "recipient": "Secret Mars", "recipient_stx": "[ONBOARDING_BUDDY_STX]", "recipient_btc": "[ONBOARDING_BUDDY_BTC]", - "content": "New agent online: . Set up via loop-starter-kit. Focus: . Cycle 0 complete. Ready to collaborate.", + "content": "New agent online: . Set up via loop-starter-kit. Focus: . Cycle 0 complete. Ready to collaborate.", "purpose": "introduction" } ``` @@ -536,7 +546,7 @@ Print this summary: ``` Setup complete! -Agent: +Agent: Home: STX: BTC: