当前位置: 首页 > Skill >

Osori

Osori

Osori

Osori v1.6.1 — 本地项目注册表与上下文加载器,支持 Telegram 斜杠命令。具备注册表版本控制、自动迁移、根过滤器及根管理等功能。

1.6.1 2026.11.26 623
获取Skill文件查看使用说明
作 者:苏辰 许可证: 更新时间:2026.11.26
本文目录展开

Osori (오소리)

Local project registry & context loader for AI agents.

Prerequisites

  • macOS: mdfind (Spotlight, built-in), python3, git, gh CLI
  • Linux: mdfind unavailable → uses find as fallback automatically. python3, git, gh CLI required.
  • Entire integration (optional): entire CLI installed (for /entire-* commands)

Dependencies

  • python3 — Required. Used for JSON processing.
  • git — Project detection and status checks.
  • entire — Optional. Required only for /entire-status, /entire-enable, /entire-rewind-list.

Telegram Bot Commands (Updated in v1.6.1)

Osori now supports Telegram slash commands for quick project management:

/list [root] — Show registered projects (optional root filter)
/status [root] — Check status of projects (optional root filter)
/find <name> [root|--root <root>] — Find a project by name (optional root scope)
/switch <name> [root|--root <root>] [--index <n>] — Switch to project and load context (multi-match selection)
/fingerprints [name] [--root <root>] — Show repo remote + last commit + open PR/issue counts
/doctor [--fix] [--dry-run] [--yes] [--json] — Registry health check (preview-first, risk-gated)
/list-roots — List roots, labels, paths, and project counts
/root-add <key> [label] — Add root (or update label)
/root-path-add <key> <path> — Add discovery path to root
/root-path-remove <key> <path> — Remove discovery path from root
/root-set-label <key> <label> — Update root label
/root-remove <key> [--reassign <target>] [--force] — Safely remove root
/alias-add <alias> <project> — Add alias for project
/alias-remove <alias> — Remove alias
/favorites — Show favorite projects
/favorite-add <project> — Mark project as favorite
/favorite-remove <project> — Unmark favorite
/entire-status <project> [root|--root <root>] — Show Entire status in a project
/entire-enable <project> [root|--root <root>] [--agent <name>] [--strategy <name>] — Enable Entire in a project
/entire-rewind-list <project> [root|--root <root>] — List rewind points in a project
/add <path> — Add project to registry
/remove <name> — Remove project from registry
/scan <path> [root] — Scan directory for git projects, optional root key
/help — Show command help

Setup

Add to your OpenClaw agent's TOOLS.md or Telegram bot config:

# In Telegram bot commands (BotFather)
list - Show all projects (or by root)
status - Check project statuses (or by root)
find - Find project by name
switch - Switch to project
fingerprints - Show repo/commit/PR/issue fingerprint
doctor - Health check (preview-first, risk-gated fix)
list-roots - Show roots and discovery paths
root-add - Add root
root-path-add - Add path to root
root-path-remove - Remove path from root
root-set-label - Rename root label
root-remove - Safely remove root (with reassign/force options)
alias-add - Add alias for a project
alias-remove - Remove alias
favorites - Show favorite projects
favorite-add - Mark favorite project
favorite-remove - Unmark favorite project
entire-status - Show Entire status for a project
entire-enable - Enable Entire for a project
entire-rewind-list - List rewind points for a project
add - Add project to registry
remove - Remove project
scan - Scan directory (optional root)
help - Show help

Usage Examples

/list work
/status personal
/find agent-avengers work
/switch Tesella --root personal
/switch Tesella --root personal --index 1
/fingerprints Tesella --root personal
/doctor --fix
/list-roots
/root-add work Work
/root-path-add work /path/to/workspace
/root-remove work --reassign default
/alias-add rh RunnersHeart
/favorite-add RunnersHeart
/favorites
/entire-status osori
/entire-enable osori --agent claude-code --strategy manual-commit
/add /Volumes/disk/MyProject
/scan /path/to/workspace work

Registry

${OSORI_REGISTRY:-$HOME/.openclaw/osori.json}

Override with the OSORI_REGISTRY environment variable.

Versioning & Migration (v1.6.1)

  • Current schema: osori.registry
  • Current version: 2
  • On every load, Osori auto-migrates older registry formats:
    • legacy array ([]) → versioned object
    • object without schema/version → normalized versioned object
  • Normalized registry fields:
    • top-level roots[]
    • top-level aliases{} (alias → project name)
    • each projects[] item includes favorite: bool
  • Migration safety:
    • creates backup: osori.json.bak-<timestamp>
    • corrupted JSON is preserved as: osori.json.broken-<timestamp>
    • write path uses atomic replace + rollback fallback

Finding Projects (when path is unknown)

When the project path is unknown, search in order:

  1. Registry lookup — Fuzzy match name in osori.json
  2. mdfind (macOS only) — mdfind "kMDItemFSName == '<name>'" | head -5
  3. find fallback — Search priority:
    1. roots[].paths from registry (if root is specified, that root first)
    2. paths from OSORI_SEARCH_PATHS Command form: find <search_paths> -maxdepth 4 -type d -name '<name>' 2>/dev/null
  4. Ask the user — If all methods fail, ask for the project path directly.
  5. Offer to register the found project in the registry.

Commands

List

Show all registered projects. Optional root filter supported in Telegram command:

/list [root]

(Example: /list work)

Switch

Supports optional root scope and explicit candidate selection:

/switch <name> [root|--root <root>] [--index <n>]

Flow:

  1. Search registry (fuzzy match, root-scoped if provided)
  2. If multiple matches:
    • show candidate list (name/root/path/last commit/dirty/score)
    • --index <n> to pick explicitly
    • no index => auto-pick highest score
  3. If not found → run "Finding Projects" flow above and suggest add path
  4. Load context:
    • git status --short
    • git branch --show-current
    • git log --oneline -5
    • gh issue list -R <repo> --limit 5 (when repo is set)
  5. Present summary

Auto score policy:

  • +50 root exact (if root scope provided)
  • +30 name exact
  • +20 name prefix
  • +10 latest commit recency
  • -10 missing path
  • -5 repo missing
  • tie-break: latest commit, then name

Fingerprints

Show a one-shot project fingerprint view:

  • repo remote URL
  • last commit hash/date
  • open PR count
  • open issue count
bash {baseDir}/scripts/project-fingerprints.sh [project-name]
bash {baseDir}/scripts/project-fingerprints.sh --root <root-key> [project-name]

GitHub open-count cache (PR/Issue):

  • default cache file: $HOME/.openclaw/osori-cache.json
  • default TTL: 600 seconds
  • env overrides:
    • OSORI_CACHE_FILE
    • OSORI_CACHE_TTL

Add

bash {baseDir}/scripts/add-project.sh <path> [--tag <tag>] [--name <name>]

Auto-detects: git remote, language, description.

Scan

bash {baseDir}/scripts/scan-projects.sh <root-dir> [--depth 3]
OSORI_ROOT_KEY=work bash {baseDir}/scripts/scan-projects.sh <root-dir> [--depth 3]

Bulk-scan a directory for git repos and add them to the registry.

Telegram command supports optional root key too:

/scan <path> [root]

Remove

Delete an entry from osori.json by name.

Status

Run git status + gh issue list for one or all projects.

Telegram root filter:

/status [root]

Doctor

Registry health check with preview-first pipeline and risk-gated fixes.

Default (no flags): analyze + preview plan — no changes applied.

/doctor                     # preview only (default)
/doctor --fix               # preview + apply (high-risk blocked)
/doctor --fix --yes         # preview + apply all (including high-risk)
/doctor --dry-run           # explicit preview only (never applies)
/doctor --json              # machine-readable JSON output

Risk levels:

  • 🟢 low — schema normalization, migration, missing fields
  • 🟡 medium — duplicate removal, root reference repair
  • 🔴 high — registry re-initialization from corrupted state

Shell equivalent:

bash {baseDir}/scripts/doctor.sh [--fix] [--dry-run] [--yes] [--json]

See also: Doctor Safe Fix Guide

Root Management

/list-roots
/root-add <key> [label]
/root-path-add <key> <path>
/root-path-remove <key> <path>
/root-set-label <key> <label>
/root-remove <key> [--reassign <target>] [--force]

Shell equivalents:

bash {baseDir}/scripts/root-manager.sh list
bash {baseDir}/scripts/root-manager.sh add <key> [label]
bash {baseDir}/scripts/root-manager.sh path-add <key> <path>
bash {baseDir}/scripts/root-manager.sh path-remove <key> <path>
bash {baseDir}/scripts/root-manager.sh set-label <key> <label>
bash {baseDir}/scripts/root-manager.sh remove <key> [--reassign <target>] [--force]

Safety rules for remove:

  • default root cannot be removed
  • if projects exist in root:
    • --reassign <target> to move projects then remove
    • or --force to move projects to default and remove

Alias & Favorites

/alias-add <alias> <project>
/alias-remove <alias>
/favorites
/favorite-add <project>
/favorite-remove <project>

Shell equivalents:

bash {baseDir}/scripts/alias-favorite-manager.sh alias-add <alias> <project>
bash {baseDir}/scripts/alias-favorite-manager.sh alias-remove <alias>
bash {baseDir}/scripts/alias-favorite-manager.sh aliases
bash {baseDir}/scripts/alias-favorite-manager.sh favorite-add <project>
bash {baseDir}/scripts/alias-favorite-manager.sh favorite-remove <project>
bash {baseDir}/scripts/alias-favorite-manager.sh favorites

Aliases are case-insensitive and are resolved by /find, /switch, and project-fingerprints.sh name queries.

Entire Integration

Run Entire CLI commands in a registered project context:

/entire-status <project> [root|--root <root>]
/entire-enable <project> [root|--root <root>] [--agent <name>] [--strategy <name>]
/entire-rewind-list <project> [root|--root <root>]

Shell equivalent:

bash {baseDir}/scripts/entire-manager.sh status <project> [root|--root <root>]
bash {baseDir}/scripts/entire-manager.sh enable <project> [root|--root <root>] [entire enable flags...]
bash {baseDir}/scripts/entire-manager.sh rewind-list <project> [root|--root <root>]

Defaults:

  • entire enable defaults to --agent claude-code --strategy manual-commit when not provided.
  • /entire-rewind-list uses non-destructive JSON listing (entire rewind --list).

Schema

{
  "schema": "osori.registry",
  "version": 2,
  "updatedAt": "2026-02-16T00:00:00Z",
  "roots": [
    {
      "key": "default",
      "label": "Default",
      "paths": []
    }
  ],
  "aliases": {
    "rh": "RunnersHeart"
  },
  "projects": [
    {
      "name": "string",
      "path": "/absolute/path",
      "repo": "owner/repo",
      "lang": "swift|typescript|python|rust|go|ruby|unknown",
      "tags": ["personal", "ios"],
      "description": "Short description",
      "addedAt": "YYYY-MM-DD",
      "root": "default",
      "favorite": false
    }
  ]
}

Auto-trigger Rules

  • "work on X" / "X 프로젝트 작업하자" → switch X
  • "find project X" / "X 찾아줘" / "X 경로" → registry search or discover
  • "list projects" / "프로젝트 목록" → list
  • "add project" / "프로젝트 추가" → add
  • "project status" / "프로젝트 상태" → status all

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,013
Skill 文件
  • SKILL.md
    • Osori (오소리)
    • Prerequisites
    • Dependencies
    • Telegram Bot Commands (Updated in v1.6.1)
      • Setup
      • Usage Examples
    • Registry
      • Versioning & Migration (v1.6.1)
    • Finding Projects (when path is unknown)
    • Commands
      • List
      • Switch
      • Fingerprints
      • Add
      • Scan
      • Remove
      • Status
      • Doctor
      • Root Management
      • Alias & Favorites
      • Entire Integration
    • Schema
    • Auto-trigger Rules
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期