Set up
Skills are installed by placing their folder where your agent loads skills.
The download comes from github.com/Thin-K-ayn/OSpec-Lite itself, not from our server, so what you get is exactly what its author published.
Install instructions come from the README
README
synced Oct 21, 2026OSpec Lite
Minimal agent-first repository bootstrap for Codex and Claude Code.
ospec-lite helps a repository become easier for coding agents to understand, easier for humans to review, and safer to change. It bootstraps repo-local instructions, a machine-readable index, a small project knowledge layer, plus lightweight change and bug workflows under .oslite/.
V1 intentionally keeps the surface area small: one-time bootstrap, non-destructive refresh, optional profiles, deterministic profile-backed doc verification, and simple repo-local change and bug tracking.
Why OSpec Lite | Quick Start | Work Reports | What It Creates | Profiles | Upgrade Roadmap | Codex Plugins | Plugins | Command Reference | Development
Why OSpec Lite
- Bootstraps
AGENTS.mdandCLAUDE.mdso Codex and Claude Code get repo-local guidance immediately. - Generates
.oslite/index.jsonas a machine-readable summary of the repository. - Creates
.oslite/docs/project/*and.oslite/docs/agents/*so repo knowledge lives next to the code. - Supports content-only profiles that add authoring packs and thin agent wrappers without introducing a plugin runtime.
- Tracks lightweight changes in
.oslite/changes/active/*and archives them when verified. - Tracks active bugs in
.oslite/bugs/active-bugs.md, persists reusable lessons into rotating bug-memory files, and compacts stale knowledge when the memory grows too large. - Verifies profile-driven documentation deterministically with
oslite docs verify. - Generates non-destructive daily or weekly work reports with
oslite report, and can emit recurring artifacts under.oslite/reports/. - Ships repo-local Codex companion plugins and a plugin module for scaffolding or installing more.
Quick Start
Start using oslite by telling your coding agent, Codex or Claude Code, to install and initialize it for you. Do not start by typing CLI commands directly.
Install ospec-lite in this repository, initialize OSpec Lite, inspect the generated files, and tell me what I should review.
OSpec Lite also includes built-in profiles tailored for specific project structures and frameworks. If your repository matches one of these profiles, tell your agent to use it during initialization:
unity-tolua-game: Unity + ToLua sub-game repositories withScript/MJGame.luaunity-tolua-hall: Unity + ToLua hall / lobby repositories withAssets/_GameCenter/...startup files
For a profile-backed Unity + ToLua repository, tell them:
Install ospec-lite in this repository and initialize OSpec Lite with the unity-tolua-game profile. Use project name "BuYuDaLuanDou" and bootstrap agent codex. Then inspect the generated authoring pack and tell me what evidence you need.
After that, keep using OSpec Lite by telling your agent what you want:
Check OSpec Lite status and refresh the repository knowledge layer.
Create an OSpec Lite change for improve-readme and keep the change record updated while you work.
Create an OSpec Lite bug for "startup ordering blocks cold boot" and apply the bug memory lesson after verification.
Run OSpec Lite docs verification and explain any missing requirements.
Generate a weekly OSpec Lite work report.
Set up a weekly OSpec Lite report automation for this repo.
The agent should decide which oslite commands to run. Use the command reference below only when you want direct terminal control.
Track a lightweight change
A change is a repo-local work record for one non-trivial task. It is not a git branch and not a commit. Think of it as the smallest reviewable unit of intent, plan, implementation notes, and verification that lives next to the code.
Why it helps:
- gives humans and agents one shared place to capture scope before edits start
- makes handoff and review easier because request, plan, applied work, and verification are separated
- leaves an archived trail of why a change happened and how it was validated
- prevents status-only handoffs because apply/verify require actual evidence
Use a change when the task is more than a tiny typo, especially if it:
- touches multiple files
- changes behavior, interfaces, rules, or architecture
- needs explicit review notes or verification steps
- may outlive one chat session or one coding pass
What oslite change new <slug> . creates:
.oslite/changes/active/<slug>/
change.json
request.md
plan.md
apply.md
verify.md
File roles:
request.md: what was asked for, intended scope, and acceptance notesplan.md: intended approach, expected files, and risks before editingapply.md: what actually changed and where implementation deviated from planverify.md: commands, results, manual validation, and remaining riskschange.json: machine-readable status and metadata
Ask your agent to create and maintain the change record while it works:
Create an OSpec Lite change for improve-readme. Fill the request and plan before editing, keep the affected files list accurate, record what changed in apply.md, run verification, then mark the change verified when the evidence is real.
Typical agent flow:
- Create the change folder.
- Write
request.mdandplan.mdbefore broad edits. - Fill
change.json.affectsbefore marking the change applied. - Implement the change.
- Record the real work in
apply.md, then mark it applied. - Record real commands and results in
verify.md, then mark it verified. - Archive it once the work is done and verified.
The agent will use oslite change new, oslite change apply, oslite change verify, and oslite change archive as the record moves from request to verified work.
Track and apply a bug fix
A bug item is the defect-oriented sibling of a change. It is where the team records the symptom, investigation, fix, validation, and the lessons that should prevent the same wrong assumption next time.
Why it helps:
- keeps one defect focused in one shared active bug section from report through applied fix
- requires the agent to write down the mistaken assumption and the actual code logic
- appends reusable reminders into
.oslite/docs/project/bug-memory.mdand its linked segment files
What oslite bug new "<title>" . creates:
.oslite/bugs/active-bugs.md
.oslite/docs/project/bug-memory.md
.oslite/docs/project/bug-memory/memory-0001.md
Ask your agent:
Create an OSpec Lite bug for "startup ordering blocks cold boot". Record the symptom, reproduction, investigation, root cause, fix, verification, and the lesson we should remember before applying the bug memory update.
Typical agent flow:
- Create the bug item and fill the new
bug-####section in.oslite/bugs/active-bugs.md. - Record the symptom, reproduction, investigation, and root cause in that active bug section.
- Implement the fix and replace
Fix Summary,File, andReasonwith real details. - Run
oslite bug fix <bug-id>once the implementation is complete. - Add real verification evidence plus cognitive-gap notes, including a concrete
Check Firstrepo path. - Run
oslite bug apply <bug-id>to persist the lesson in bug memory, remove the bug from the active queue, and compact stale knowledge when needed.
Work Reports
oslite report summarizes the OSpec Lite state for an initialized repository without mutating change, bug, or docs state. Reports are built from:
- open changes in
.oslite/changes/active/* - recently archived changes
- open bugs in
.oslite/bugs/active-bugs.md - recently applied bugs
- docs whose generated suggestions now need review
Use a terminal-only report when you just want to inspect the current state:
oslite report . --cadence daily
oslite report . --cadence weekly
Use a one-off artifact when you want files that can be archived, attached, or reviewed later:
oslite report write . --cadence weekly
This writes Markdown and JSON under .oslite/reports/<cadence>/, for example:
.oslite/reports/weekly/2026-W19.md
.oslite/reports/weekly/2026-W19.json
For recurring artifacts, create the repo-local schedule once:
oslite report schedule . --cadence daily
Then have cron, CI, or an agent automation call the idempotent runner repeatedly:
oslite report run .
The runner emits a report only when the current daily or weekly period is due. Daily periods use UTC dates, weekly periods use ISO week keys, and --force can intentionally overwrite the current period artifact.
What It Creates
oslite init is a one-time bootstrap. On a fresh repository, generic init creates:
.oslite/
config.json
index.json
docs/
project/
overview.md
architecture.md
repo-map.md
coding-rules.md
glossary.md
entrypoints.md
bug-memory.md
bug-memory/
agents/
quickstart.md
change-playbook.md
bug-playbook.md
bugs/
active-bugs.md
changes/
active/
archived/
AGENTS.md
CLAUDE.md
When a profile is selected, it can also add:
.oslite/docs/agents/authoring/*
.codex/skills/oslite-fill-project-docs/SKILL.md
.claude/commands/oslite-fill-project-docs.md
If the repo is already initialized, oslite init reports the current state and exits instead of rewriting the knowledge layer.
Use oslite refresh later to rescan the repo, rewrite only machine-managed artifacts, and report human-owned docs whose generated suggestions have drifted.
Typical Profile Workflow
Give the agent the profile, project name, and bootstrap target first. Then ask it to work in this order:
- Initialize with the right profile.
- Inspect the generated authoring pack before writing final docs.
- Fill
.oslite/docs/agents/authoring/evidence-map.mdwith concrete repository evidence before the final docs. - Complete
AGENTS.md,CLAUDE.md,.oslite/docs/project/*, and.oslite/docs/agents/*. - Finish by running docs verification and explaining any remaining gaps.
Profiles
| Profile | Target repository | Required repo anchors | Output language |
|---|---|---|---|
unity-tolua-game | Unity + ToLua sub-game repos | Script/MJGame.lua | zh-CN |
unity-tolua-hall | Unity + ToLua hall / lobby repos | Assets/_GameCenter/... startup files | zh-CN |
Both shipped profiles:
- are content-only asset packs, not executable plugins
- add
.oslite/docs/agents/authoring/* - can generate repo-local Codex and Claude Code wrappers
- require
projectNameandbootstrapAgentduring init
Profile docs:
Codex Plugins
This repository now ships repo-local Codex companion plugins under plugins/.
- Core workflow plugin:
plugins/ospec-lite-codex/ - Repo marketplace entry:
.agents/plugins/marketplace.json - Primary
ospec-liteskill:$ospec-lite-workflow
Open this repository in Codex and let it discover the repo-local marketplace. The plugin does not replace oslite; it teaches Codex when to use the CLI and how to follow profile-backed OSpec Lite workflows consistently.
Example prompts:
Initialize this repo with OSpec Lite.Check OSpec Lite status and explain the missing markers.Continue the profile docs and run oslite docs verify.Create an OSpec Lite change for add-login-flow.Set up a weekly OSpec Lite report automation for this repo.
Plugins
oslite plugins manages repo-local Codex companion plugins as assets, not as an execution runtime. It keeps plugins/<name>/ and .agents/plugins/marketplace.json in sync so a repository can ship discoverable local plugins without hand-editing manifests every time.
Bundled starter plugins:
ospec-lite-codex: the OSpec Lite workflow companion plugin
Ask your agent:
List the repo-local OSpec Lite plugins, install the bundled defaults if they are missing, and explain what changed in plugins/ and .agents/plugins/marketplace.json.
For a custom plugin:
Create a repo-local OSpec Lite companion plugin named my-plugin with skills and hooks enabled. Keep the marketplace entry in sync and summarize the generated files.
Command Reference
These are the raw CLI commands your agent may run while following the workflows above. They are useful for automation, debugging, and maintainers who prefer direct terminal control.
Report automation is repo-local: oslite report schedule writes .oslite/reports/schedule.json, and a cron job, CI task, or agent automation can call oslite report run repeatedly. Each due run writes markdown plus JSON artifacts under .oslite/reports/<cadence>/; daily periods use UTC dates and weekly periods use ISO week keys.
oslite init [path] [--document-language en-US|zh-CN] [--profile <profile-id>] [--project-name <name>] [--bootstrap-agent codex|claude-code|none]
oslite status [path]
oslite refresh [path]
oslite update [path] [--dry-run] [--json]
oslite report [path] [--cadence daily|weekly]
oslite report write [path] [--cadence daily|weekly]
oslite report schedule [path] [--cadence daily|weekly]
oslite report run [path] [--force]
oslite bug new <title> [path]
oslite bug fix <bug-id> [path]
oslite bug apply <bug-id> [path]
oslite docs verify [path]
oslite profiles list [--json]
oslite profiles info <profile-id> [--json]
oslite profiles validate <profile-id|all> [--json]
oslite plugins list [path]
oslite plugins info <plugin-name> [path] [--json]
oslite plugins doctor [plugin-name] [path] [--json]
oslite plugins install <plugin-name|plugin-path> [path] [--installation AVAILABLE|INSTALLED_BY_DEFAULT|NOT_AVAILABLE] [--authentication ON_INSTALL|ON_USE] [--force]
oslite plugins install-defaults [path] [--force]
oslite plugins create <plugin-name> [path] [--display-name <name>] [--description <text>] [--category <category>] [--with-skills] [--with-hooks] [--with-scripts] [--with-assets] [--with-mcp] [--with-apps] [--no-marketplace] [--installation AVAILABLE|INSTALLED_BY_DEFAULT|NOT_AVAILABLE] [--authentication ON_INSTALL|ON_USE] [--force]
oslite change new <slug> [path]
oslite change apply <change-path>
oslite change verify <change-path>
oslite change archive <change-path>
Docs
- docs/ospec-lite-v1-core-spec.md
- docs/upgrade-roadmap.md
- docs/comparison.md
- docs/profile-authoring.md
- docs/unity-tolua-verification.md
- docs/upgrading.md
Development
npm install
npm run build
npm run typecheck
npm test
npm run release:smoke