npx skills add dongshuyan/compass-skills --skill '*' -a claude-codeCOMPASS Skills is a local-first skill suite for AI coding agents. It helps agents clarify ambiguous work, preserve long-running project context, and adapt collaboration style without uploading user data.
The project currently ships three SKILL.md skills:
| Skill | Purpose |
|---|---|
task-clarifier |
Aligns goals, scope, evidence, acceptance criteria, and risk boundaries before ambiguous, costly, or externally visible work. |
task-forest |
Maintains a repo-local task forest / DAG with goals, subtasks, dependencies, progress, deviations, todos, decisions, and session history. |
user-profile-keeper |
Maintains a local, auditable, correctable collaboration profile for communication preferences, risk style, and recurring working context. |
List the available skills without installing:
npx skills add dongshuyan/compass-skills --listInstall all skills for Claude Code:
npx skills add dongshuyan/compass-skills --skill '*' -a claude-codeInstall all skills for both Codex and Claude Code:
npx skills add dongshuyan/compass-skills --skill '*' -a codex -a claude-codeAfter installation, invoke the skills directly in a session:
$task-clarifier
$task-forest
$user-profile-keeper
If your agent does not support the skills CLI, copy the three folders under skills/ into the agent's local skills directory and keep their references/, scripts/, and agents/ subdirectories intact.
Most agents handle the current prompt well. Long-running work breaks in different ways:
- The agent does not know the user's communication style, risk boundaries, or recurring omissions.
- A new session cannot reliably place a request inside the broader project.
- Work can look productive while drifting away from the user's real goal.
COMPASS gives agents a durable operating layer:
- Know the user through a local profile that the user can inspect and correct.
- Know the work through a repo-local task graph that survives session boundaries.
- Know the direction through a clarification gate before ambiguous or risky execution.
task-clarifier is the entry point for ambiguous, high-cost, high-risk, evidence-sensitive, or externally visible work. It decides whether the agent should proceed, research first, ask a narrow question, confirm risk, offer workflow options, or block.
task-forest records durable work structure. It does not execute tasks itself; it tracks why a task exists, where it fits, how far it progressed, what changed, and what remains unresolved.
user-profile-keeper stores collaboration preferences locally. It is intentionally narrow: it helps future sessions ask better questions and apply the right risk boundary, but it does not replace current evidence or save secrets.
user-profile-keeper -> who is the user and how should we collaborate?
task-forest -> where does this task fit and is it drifting?
task-clarifier -> what exactly should the agent do now?
Task forest HTML export:
Live DAG view:
Task detail view:
User profile and alignment flow:
Ecosystem map:
COMPASS is not tied to one agent runtime. It is a SKILL.md package with Markdown instructions, YAML frontmatter, optional references/, optional scripts/, and optional agent metadata.
| Agent / environment | Recommended setup |
|---|---|
| Claude Code | Use npx skills add dongshuyan/compass-skills --skill '*' -a claude-code, or copy the folders under skills/ into Claude Code's custom skills directory. |
| Codex | Use the skills CLI with -a codex when supported by your environment, or use the repo as a local skills source. |
| OpenCode / OpenClaw / other agents | Keep AGENTS.md and load the matching SKILL.md first, then use references/ and scripts/ as needed. |
The scripts use Python standard-library components. They do not require a hosted service.
COMPASS is local-first by design:
- No upload of task data or user-profile data.
- No browser cookie, token, private key, credential, or session extraction.
task-foreststores task data under the current workspace, usually.agent-workbench/task-forest/.user-profile-keeperstores local profile data under.compass-skills/user-profiles/v1by default, or a user-selectedCOMPASS_USER_PROFILE_HOME.- High-risk actions such as deletion, overwrite, publishing, remote writes, credential use, and global configuration changes require explicit confirmation.
Important: user-profile-keeper uses local plaintext storage. It is not an encrypted vault. Do not store passwords, tokens, private keys, verification codes, or highly sensitive personal data in the profile.
See SECURITY.md for the security boundary.
Clarify a task before execution:
Use $task-clarifier to align the task below.
Task: ...
Material: ...
Constraints: do not ask what can be inferred from files, context, or reliable sources. Ask only questions that change scope, method, evidence, format, safety, or acceptance criteria.
Output: decide whether to proceed, research-first, ask, confirm, offer-method-choice, or block, and explain why.
Maintain the task forest for a workspace:
Use $task-forest to analyze the current session and maintain the task forest for this workspace.
Goal: turn durable goals, tasks, progress, deviations, risks, decisions, and follow-ups from this session into a task-forest proposal.
Requirements:
1. Read the current task-forest list and todo first; initialize task-forest if missing.
2. Identify which long-term goal this session served. If no relation is clear, do not force an edge; ask me or create a question/risk node.
3. Save a proposal and show me the planned changes before applying.
4. After approval, apply, validate, export, and report the HTML path.
Initialize a local user profile:
Use $user-profile-keeper to initialize my local user profile.
Goal: build an auditable, correctable, retractable profile from a local questionnaire or the current context.
Boundaries:
1. Store locally only. Do not upload anything or read browser cookies, tokens, or credentials.
2. Do not save secrets, passwords, private keys, verification codes, or browser-session information.
3. Put inferred, private, sensitive, or conflicting claims into pending proposals for my review.
4. Report what was saved, proposed, skipped, or redacted.
The public install path has been validated with skills@1.5.11:
npx skills add dongshuyan/compass-skills --listfinds all 3 skills.npx skills add dongshuyan/compass-skills --skill '*' -a claude-code --copy -yinstalls all 3 skills into a temporary project's.claude/skills/directory.
Planned additions:
- Build reusable skills from real task histories.
- Upgrade existing skills from observed failures, feedback, and validation evidence.
- Generate restart prompts for long sessions using
task-forestas structured context. - Summarize local agent states, waiting-human items, risks, and review queues.
- Recommend low-switching-cost follow-up tasks from the task graph.
MIT. See LICENSE.
The project is developed publicly at dongshuyan/compass-skills.