# Send SecondMind to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "secondmind",
    "name": "SecondMind",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/Emphaiser/secondmind",
    "canonicalUrl": "https://clawhub.ai/Emphaiser/secondmind",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/secondmind",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=secondmind",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "config.example.json",
      "package.json",
      "SKILL.md",
      "setup.js",
      "README.md",
      "AGENT-SETUP.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "secondmind",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-03T14:13:46.473Z",
      "expiresAt": "2026-05-10T14:13:46.473Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=secondmind",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=secondmind",
        "contentDisposition": "attachment; filename=\"secondmind-1.4.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "secondmind"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/secondmind"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/secondmind",
    "downloadUrl": "https://openagent3.xyz/downloads/secondmind",
    "agentUrl": "https://openagent3.xyz/skills/secondmind/agent",
    "manifestUrl": "https://openagent3.xyz/skills/secondmind/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/secondmind/agent.md"
  }
}
```
## Documentation

### When To Use

Activate this skill when the user:

Asks to set up, configure, or check SecondMind status
Wants to search their knowledge base or recall past conversations
Asks for proactive suggestions or project ideas
Mentions memory, remembering, or context from past sessions
Sends /new or /reset (trigger pre-reset flush!)
Asks about their mood/emotional patterns or upcoming events
Sends any SecondMind Telegram command (see below)

### First-Run Setup

If the database does not exist at {baseDir}/data/secondmind.db:

node {baseDir}/setup.js

Then guide the user through editing {baseDir}/config.json:

Set openrouter.apiKey (required – get one at https://openrouter.ai/keys)
Check openclaw.sessionsDir matches their agent's session path
Optional: Enable Telegram notifications

### CRITICAL: Pre-Reset Memory Capture

When the user sends /new or /reset:

BEFORE the reset takes effect, run:
node {baseDir}/scripts/flush.js


Respond with the script's output (e.g. "💾 Session archived.")
THEN allow the reset to proceed normally

### Telegram Commands (Integrated Mode)

When telegramMode is "integrated" in config.json, the OpenClaw agent handles
these commands directly. Execute the corresponding script and format the response.

### /smstatus or /es

node {baseDir}/scripts/status.js

### /proposals or /ep [filter]

node {baseDir}/scripts/proposals.js [proposed|accepted|rejected|all]

### /accept <ID...> [comment] or /ea <ID...> [comment]

node {baseDir}/scripts/feedback.js accept <ID...> [comment]

Supports multiple IDs: /accept 1 3 5 or /accept all
After accepting, a project is automatically created to track progress.

Read the proposal's follow_up field from the database:
sqlite3 {baseDir}/data/secondmind.db "SELECT follow_up, description FROM proposals WHERE id=<ID>"
If there's a follow_up question, ask the user that question
If the user agrees, start working on the task immediately
Example flow:

User: /accept 5
Agent: "✅ #5 akzeptiert. Soll ich dir die Guide-Liste direkt zusammenstellen?"
User: "Ja mach"
Agent: starts working on the task

### /reject <ID...> [comment] or /er <ID...> [comment]

node {baseDir}/scripts/feedback.js reject <ID...> [comment]

Supports multiple IDs: /reject 2 4 or /reject all
Acknowledge briefly. Don't make a big deal out of it.

### /defer <ID...> [comment] or /ed <ID...> [comment]

node {baseDir}/scripts/feedback.js defer <ID...> [comment]

### /drop <ID...> or /drop all older_than <duration>

node {baseDir}/scripts/feedback.js drop <ID...>
node {baseDir}/scripts/feedback.js drop all older_than 14d

Permanently kills proposals – they will never be suggested again, not even reformulated.
Supports: /drop 2 4, /drop all, /drop all older_than 14d

### /projects or /pj [filter]

node {baseDir}/scripts/proposals.js  # (projects are shown in status)

Lists tracked projects. Filter: active (default), completed, all.
Projects are auto-created when proposals are accepted.

### /complete <ID...> or /done <ID...>

node {baseDir}/scripts/feedback.js complete <ID...>

Marks a project as completed. Completed projects are permanently excluded from future suggestions.
The ID refers to the original proposal ID.

### /mute <duration> or /unmute

node {baseDir}/scripts/feedback.js mute 1d
node {baseDir}/scripts/feedback.js mute 1w
node {baseDir}/scripts/feedback.js unmute

Pauses all notifications and initiative runs for the given duration.
Durations: 1h, 1d, 1w, 2w

### Natural Language Feedback

The bot understands natural language feedback on the most recently shown proposals:

"Nimm die ersten zwei, den Rest ignorieren"
"1 und 3 sind gut, Rest weg"
"Alle droppen bis auf die Security-Sachen"

### /smsearch <query> or /smsr <query>

node {baseDir}/scripts/search.js "<query>" --no-rerank

### /mood or /em

Query the database at {baseDir}/data/secondmind.db:

SELECT mood, COUNT(*) as count FROM social_context
WHERE detected_at > datetime('now', '-7 days')
GROUP BY mood ORDER BY count DESC;

Format with emoji: 😤frustration 🎉excitement 😰worry 🥳celebration 😫stress 🤔curiosity 😴boredom 🙏gratitude

### /smrun or /smrun

cd {baseDir} && node scripts/ingest.js && node scripts/consolidate.js && node scripts/initiative.js

### Standalone Telegram Bot (Alternative Mode)

When telegramMode is "standalone", the user runs a separate bot daemon:

node {baseDir}/scripts/telegram-bot.js

This requires a dedicated Telegram bot token (different from the OpenClaw agent's bot).
The standalone bot handles all the same commands listed above via its own polling loop.

### Background Jobs (installed by setup.js)

Ingest: Every 30 min – imports JSONL session transcripts
Consolidate: Every 6h – LLM extracts knowledge + emotions + events
Archive: Daily 3:00 AM – promotes mature knowledge to long-term FTS5 index
Initiative: Every 6h – generates proposals and sends Telegram notifications

### Configuration

Edit {baseDir}/config.json:

openrouter.apiKey: OpenRouter API key (REQUIRED)
openclaw.sessionsDir: Path to your agent's sessions directory
telegramMode: "integrated" (via OpenClaw) or "standalone" (separate daemon)
notifications.enabled: true to push proposals to Telegram
notifications.telegram.botToken: Your Telegram bot token
notifications.telegram.chatId: Your Telegram chat ID
models.*: LLM model assignments (pre-optimized, change only if needed)
initiative.reminderCooldownDays: Days before reminding about deferred proposals (default: 7)
initiative.maxNudgesPerProposal: Max reminders before auto-archiving (default: 2)
initiative.dedupThreshold: Semantic similarity threshold for dedup (default: 0.85)

### Troubleshooting

"Database locked": Cron job running. Wait 30s.
"OpenRouter error": Check API key + credit balance at openrouter.ai
"No new data": Check openclaw.sessionsDir in config.json
Telegram conflict: Two bots polling same token → use integrated mode or create second bot
Reset: node {baseDir}/setup.js --reset

### Cost

~$0.60-1.65/month via OpenRouter Cloud. See https://openrouter.ai/models for current prices.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Emphaiser
- Version: 1.4.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-03T14:13:46.473Z
- Expires at: 2026-05-10T14:13:46.473Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/secondmind)
- [Send to Agent page](https://openagent3.xyz/skills/secondmind/agent)
- [JSON manifest](https://openagent3.xyz/skills/secondmind/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/secondmind/agent.md)
- [Download page](https://openagent3.xyz/downloads/secondmind)