init-openpurpose
/init-openpurpose
Guided first run of OpenPurpose in the current repository. Use when someone is new to OpenPurpose, or asks to get started, set it up or try it here.
- Author
- openstuff-dev ↗
- Repository
- open-purpose ↗
- Licence
- MIT
- Last repository change
- 10.11.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 2
No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Guided first run of OpenPurpose in the current repository. Use when someone is new to OpenPurpose, or asks to get started, set it up or try it here.
Original author description
Guided first run of OpenPurpose in the current repository. Use when someone is new to OpenPurpose, or asks to get started, set it up or try it here.
How it works
- 1. Check the connection
- 2. Find the project
- 3. Tell agents to use it
- 4. Show what an agent sees
- 5. Fill one gap
- 6. Make the first learning
- 7. Wrap up
SKILL.md preview
---
name: init-openpurpose
description: Guided first run of OpenPurpose in the current repository. Use when someone is new to OpenPurpose, or asks to get started, set it up or try it here.
---
# Get started with OpenPurpose
You are giving someone their first tour of OpenPurpose, in their own repository. The goal: in about five minutes they have the repository connected, have seen the rules an agent gets for it, and have watched one correction become a learning waiting for review. That loop is the point of the product: a correction made once should never have to be made again.
Talk like a guide, not a manual. Before each step, say in one sentence what it does and why. Keep the person's own repository and their own words at the centre; skip anything they already have.
## 1. Check the connection
Call `list_organizations`.
- It works: say which organization the token belongs to. Done.
- The `openpurpose` tools are missing or the call fails with an auth error: the MCP server isn't connected yet. Tell them to open their OpenPurpose server, go to **Settings › Connect an agent**, create an agent token and run the command shown there, e.g. `claude mcp add --transport http openpurpose https://<server>/mcp --header "Authorization: Bearer chr_..."`, then restart the session and run this skill again. Stop here.
## 2. Find the project
Call `get_context` with `remote_url` from `git remote get-url origin`, `project` from `.openpurpose.json` if it exists, `path: "."` and the root manifest (`package.json`, `*.csproj`, `go.mod`, ...): its `path` and its `dependencies` (the package names, not the whole file).
- A project is found: name it and move on.
- No project is found: call `list_projects`, show the person the candidates and ask which one this repository belongs to, or whether to create a new one. Then call `register_repository` (existing project) or `create_project` (new one), and write `.openpurpose.json` in the repository root with `{"project": "<slug>"}`. Call `get_context` again.
Done when `get_context` names a project for this repository.
## 3. Tell agents to use it
Look in `AGENTS.md` and `CLAUDE.md` for a section that mentions `get_context`. If neither has one, fetch the snippet from https://raw.githubusercontent.com/openstuff-dev/open-purpose/master/agent/AGENTS.snippet.md, show it, and ask whether to add it to `CLAUDE.md` (or `AGENTS.md` if only that file exists). Explain why: agents follow the server's workflow more reliably when the repository repeats it.
Leave the change uncommitted; the person decides when to commit it.
## 4. Show what an agent sees
Summarize the context from step 2 in a few lines, using the person's own content:
- The layers that applied, general to specific (organization, project, scopes), and that the more specific rule wins.
- Two or three rules that stood out, quoted by heading.
- What is empty or thin, e.g. no project purpose, no glossary, no scopes for a folder that clearly has its own stack.
- Each section's mode: **locked** (agents only read it), **propose** (agent edits become proposals), **open** (agents edit directly).
Point them at the project's **What agents see** tab in the web UI, which shows this same text, and at **Agent mode** in the top bar for exploring as an agent.
## 5. Fill one gap
Pick the most useful gap from step 4. Usually it is the project purpose: draft two or three sentences from the README and the code (what the project does, who uses it, what good looks like) and show the draft. When the person agrees, save it with `update_section`, or with `add_section` and the document's `[d:…]` id from the context. If the document doesn't exist yet (a glossary or the business logic, say), propose it with `propose_document`, its first sections included. Say where it went: a direct edit, or a proposal in the **Inbox** if the section or document is in propose mode.
If nothing is missing, skip this step and say so.
## 6. Make the first learning
This is the step that matters most. Ask: "What do you keep telling coding agents in this repo? One rule you're tired of repeating." Offer two examples from what you saw in the code, e.g. a naming convention or a command that must run before committing.
Turn their answer into one rule, stated positively, with the reason, and call `propose_learning` with the same `remote_url` and `path` as in step 2, and the `stacks` that `get_context` returned. Tell them:
- where it was filed (organization › project › scope),
- that it waits in the **Inbox** until a person approves it, reviewed like a pull request,
- that from then on every agent working in this code gets it from `get_context`, and the correction never has to be made again.
Done when `propose_learning` has returned and you have told them where to approve it.
## 7. Wrap up
In three short lines, list what is now set up. Then suggest what to try next, picking the two that fit what you saw:
- Approve the learning in the **Inbox**, then ask an agent for a task in this repo and watch it follow the rule.
- Ask to "describe this project": the `describe-project` skill adds a scope with its first rules for each part of the code that has its own (`frontend/**`, or the `angular` stack).
- Link related projects with `[[project-name]]` so agents learn about the services this one talks to.
- Attach the project's OpenAPI spec on its **API** tab, so agents call endpoints with exact shapes.
- Ask "anything you could fix here?" to see the findings agents have reported.
Versions
The database has no other skills named init-openpurpose.
Database snapshot: 13.11.2026 · package version 4f24ce843acb (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100describe-project
Map a repository into OpenPurpose, with a scope and its first rules for each part of the code that has rules of its own, and organization scopes for stacks several projects share. Use when someone asks to populate, describe, document or set up a project in OpenPurpose, or to add scopes. - 100describe-organization
Interview the user about what their organization does and write its Organization purpose for OpenPurpose. Use when the organization purpose is empty or thin, or when someone asks to describe, document or interview them about their company. - 100init
Turn on Rekal memory in the current repository by running `rekal init`. Use when the user asks to initialize or set up Rekal here, or when a `rekal` command reported the repository is not initialized. Once per repository. Do not offer this merely because a repo lacks a `.rekal/`… - 96kybes-init
Set up kybes in the current project (config, path rules, CLAUDE.md block, scaffold, CI, optional example schemas, first model generation). Use when the user asks to install, initialise, set up or update kybes in a repository. - 100get-started
Guides installation of gitagent and creation of first agent with scaffolding, configuration, and validation. Use when the user is new to gitagent, asks how to get started, wants to install gitagent, set up their first agent, or says 'how do I start? - 100memory-init
在当前目录下初始化记忆系统,生成 CLAUDE.md(可选 AGENT.md 给 Cursor 用)、MEMORY.md 和 memory/ 目录。当用户说"初始化记忆"、"搭建记忆"、"memory init"、"/memory-init"时触发。