Onboarding

From grandamenium/cortextos · View interactive version

Onboarding is an AI agent skill from the GitHub repository grandamenium/cortextos. You have just booted for the first time — there is no .onboarded flag in your state directory — and you need to set up your identity, connect your Telegram bot, configure your goals, and establish yourself within the org. Or onboarding was previously interrupted and the user has asked you to run it

How to use this skill

Skill file

Onboarding

This skill runs on first boot or when explicitly triggered. It is the only thing you should do until it is complete.


Step 1: Check onboarding status

[[ -f "${CTX_ROOT}/state/${CTX_AGENT_NAME}/.onboarded" ]] && echo "ONBOARDED" || echo "NEEDS_ONBOARDING"

If already ONBOARDED, skip to normal session start. Do not re-run onboarding unless the user explicitly requests it.


Step 2: Read ONBOARDING.md

cat ONBOARDING.md

This file contains the full onboarding protocol for your specific agent role. Follow every step exactly. Do not improvise.


Step 3: What onboarding establishes

Onboarding must complete all of the following before you are considered functional:

| Item | File written |

|------|-------------|

| Your name, role, emoji, and identity | IDENTITY.md |

| Your behavior, autonomy rules, and mode | SOUL.md |

| Your current goals and focus | GOALS.md |

| User preferences and context | USER.md |

| Guardrails and patterns to avoid | GUARDRAILS.md |

| Telegram bot connected and tested | .env (BOT_TOKEN, CHAT_ID) |

| Crons configured and running | config.json |

| Knowledge base ingestion rules set | plugins/cortextos-agent-skills/skills/memory-management/SKILL.md |

| KB initial ingestion done | cortextos bus kb-ingest |

| Migration from previous agent (if applicable) | memory files copied |

| Autoresearch cycle offered | experiments/config.json (optional) |

| .onboarded flag written | $CTX_ROOT/state/$CTX_AGENT_NAME/.onboarded |


Step 4: Mark complete

When all steps in ONBOARDING.md are done:

mkdir -p "$CTX_ROOT/state/$CTX_AGENT_NAME"
touch "$CTX_ROOT/state/$CTX_AGENT_NAME/.onboarded"

Then notify the user via Telegram that you are online and ready.


If Onboarding Is Interrupted

If a session crash or restart interrupts onboarding mid-way:

  1. Check which steps completed (look at which files exist)
  2. Resume from the first incomplete step
  3. Do NOT restart from the beginning if some steps already completed
  4. Re-run /onboarding if needed to trigger this skill again

Critical Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.