skills/ai-workspace-skill/SKILL.md
Scaffold, review, audit, and validate skill-based AI workspaces for agent hosts. Use when the user wants an AI workspace built around SKILL.md plus event handlers, references, templates, scripts, data, and output instead of AGENTS.md; when they want knowledge distillation workflows packaged as a reusable skill; or when they want to convert an AGENTS.md workspace pattern into a skill-owned workspace.
npx skillsauth add yysun/awesome-agent-world ai-workspace-skillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create or review AI workspaces whose workspace contract is a skill.
This skill is for the skill-based version of an AI workspace:
SKILL.md is the triggerable workspace contract.data/ holds durable source evidence and state.process/ holds event handlers that create or update state.output/ holds generated reports, decks, reviews, and other deliverables.references/ holds long contracts, rubrics, source policy, and domain rules.templates/ holds reusable output skeletons.scripts/ exists only for deterministic work the host should not improvise.The default execution model borrows AppRun's event/data/handler shape:
event + current state -> event handler -> new or updated state
Events can come from user requests, cron/timer triggers, scheduled reviews, file
or data changes, API/webhook/input updates, validation runs, audit runs, or
manual operator decisions. Classify the event, load the smallest relevant event
handler defined under process/, read the necessary current state, perform
documented effects, then create or update state in data/, render output/, or
respond directly.
Do not default to AGENTS.md.
Use AGENTS.md only as source material, compatibility glue, or an explicit
user-requested wrapper.
Classify the request first:
Mixed request order:
Choose the smallest skill-based workspace that works.
Minimal skill workspace:
.agents/skills/<workspace-skill>/SKILL.md
process/
data/
output/
Use this when the workflow is simple, but durable data still needs an explicit workspace event handler.
Reference-backed knowledge workspace:
.agents/skills/<workspace-skill>/SKILL.md
.agents/skills/<workspace-skill>/references/audit-rubric.md
.agents/skills/<workspace-skill>/templates/
process/<memory-layer>.md
process/<tension-layer>.md
process/<insight-layer>.md
process/<action-layer>.md
process/<runtime-layer>.md
process/<object-folder>/<object-type>.md
data/<knowledge-base>/<layer>.md
output/
Use this for knowledge distillation, review workflows, recurring analysis, or
domain work where the workspace should look like the PMS pattern but be
triggered by a skill instead of root AGENTS.md.
Extended package with skill-owned references:
.agents/skills/<workspace-skill>/SKILL.md
.agents/skills/<workspace-skill>/references/workflow-contract.md
.agents/skills/<workspace-skill>/references/source-policy.md
.agents/skills/<workspace-skill>/references/validation.md
.agents/skills/<workspace-skill>/templates/
process/
data/
output/
Use this when some rules are portable skill guidance while process/ remains
the workspace-local event-handler layer.
Script-backed skill workspace:
.agents/skills/<workspace-skill>/SKILL.md
.agents/skills/<workspace-skill>/references/
.agents/skills/<workspace-skill>/templates/
.agents/skills/<workspace-skill>/scripts/
.agents/skills/<workspace-skill>/tests/
process/
data/
output/
Use this only when deterministic code adds real value: API ingest, validation, normalization, ranking, rendering, conversion, or repeatable output creation.
Catalog/distribution variant:
skills/<workspace-skill>/SKILL.md
skills/<workspace-skill>/references/
skills/<workspace-skill>/templates/
skills/<workspace-skill>/scripts/
Use this when the workspace skill is meant to be installed or reused across
repositories. Keep repo-specific data/ and output/ outside the packaged
skill unless the user explicitly wants fixtures or sample data bundled.
Prefer .agents/skills/<workspace-skill>/ for a workspace-local skill.
Use skills/<workspace-skill>/ when the repo is a skill catalog or the user
wants an installable package.
Use $CODEX_HOME/skills/<workspace-skill>/ only for a local user skill.
Do not invent a second convention when the target repo already has one.
Treat natural-language creation requests as actionable.
Before writing files:
process/ event handlers;data/ paths and current-vs-history behavior;output/ paths;Ask only when the missing answer changes ownership, external writes, or the domain itself. Otherwise make a narrow assumption and scaffold.
Default chain:
sources -> memory -> tension -> insight -> action
Layer meanings:
sources: raw or summarized evidence with provenance.memory: durable facts, state, and reusable object knowledge.tension: unresolved pressure, contradiction, risk, or opportunity.insight: current interpretation and consequence.action: local recommended next moves or decision options.Localize layer names when the workspace language is not English.
Use object-first storage when the domain has stable objects:
data/<object-type>/<object-id>/<yyyy>/<mm>/<dd>/<layer>.md
data/<object-type>/<object-id>/current/<layer>.md
Use seed knowledge storage when the source is domain-level rather than object-level:
data/<knowledge-base>/<layer>.md
Do not invent object IDs to fill a tree.
Use dated folders when history matters: snapshots, daily reviews, external state changes, source freshness, or decision replay.
Use current/ when future runs must reload the maintained state quickly.
Actions are local recommendations unless the user approves a specific external write.
Both ai-workspace and ai-workspace-skill may create PMS-style process/
and data/ folders.
For this skill, process/ is not an AGENTS.md substitute. It is the
workspace-local event-handler layer that the skill loads and applies.
Event handlers are process files under process/.
They read current state from data/, perform documented effects, and produce
new or updated state, usually persisted back to data/. They may also render
human-facing output under output/ or respond directly.
Each handler should define:
data/ reads;data/ writes;Default event-handler layout:
process/<memory-layer>.md
process/<tension-layer>.md
process/<insight-layer>.md
process/<action-layer>.md
process/<runtime-layer>.md
process/<object-folder>/<object-type>.md
Use localized names when the workspace language is not English, as in:
process/知识.md
process/张力.md
process/判断.md
process/动作.md
process/运行.md
process/对象/学生.md
Create process/<runtime-layer>.md when source-to-layer flow matters.
Create process/<object-folder>/<object-type>.md when object types have
distinct rules, triggers, boundaries, or action logic.
Create API event-handler files only when the workspace ingests external systems:
process/api.yaml
process/api.md
Use process/api.yaml for route and schema truth.
Use process/api.md for auth, route selection, error handling, and write
boundaries.
Use templates/process-contract.md from this skill when creating process
files, then adapt it into an event handler for the domain.
Skill-based workspaces should support natural-language reporting when the domain has durable knowledge or recurring review outputs.
Users may ask with phrases such as:
report the current status
make a deck
create a review report
汇报当前情况
做一份复盘
输出给业务看的 deck
Treat each reporting request as an event. Map every request to an explicit scope before reading files:
current/ layers or seed knowledge;If the scope is ambiguous, choose the smallest useful scope and state the assumption. Ask only when the audience, object set, export format, or external write behavior would materially change.
Reporting remains part of the distillation chain:
sources -> memory -> tension -> insight -> action -> output
Default output paths:
output/reports/<yyyy>/<mm>/<dd>/<scope>.md
output/decks/<yyyy>/<mm>/<dd>/<scope>.md
Use the export route that fits the repo:
Create these workspace files when reporting is part of the contract:
process/<reporting-layer>.md
templates/report-artifact.md
templates/deck-outline.md
SKILL.md must tell the host when to load the reporting event handler and which
templates to use for report or deck output.
Use templates/reporting-process.md, templates/report-artifact.md, and
templates/deck-outline.md from this skill when scaffolding those files.
Every scaffolded skill workspace needs a SKILL.md.
SKILL.md must define:
Use templates/skill-workspace-SKILL.md as a starting point, then adapt it to
the domain. Do not leave placeholder language in generated skills.
Create references when the workflow has rules that should not bloat
SKILL.md and should travel with the skill package.
Recommended references:
references/workflow-contract.md
references/source-policy.md
references/validation.md
Add domain-specific references when the guidance is portable across workspaces:
references/object-types.md
references/playbooks.md
references/api-ingest.md
references/presentation-contract.md
In SKILL.md, list each reference and say when to load it.
Do not create vague reference files such as notes.md or misc.md.
Use references/audit-rubric.md from this skill when reviewing generated
skill workspaces.
Templates are useful here because skill-based AI workspaces repeat the same output contracts.
Create only templates that the workflow will actually use.
Common templates:
templates/layer.md
templates/run-summary.md
templates/review-report.md
templates/presentation-outline.md
templates/report-artifact.md
templates/deck-outline.md
Templates should define output shape, not business conclusions.
Use templates/knowledge-layer.md from this skill when creating layer files or
domain-specific layer templates.
Use templates/process-contract.md from this skill when creating workspace
event handlers.
Use templates/reporting-process.md from this skill when creating a reporting
event handler.
Scripts are optional.
Create scripts only for deterministic work:
Do not create scripts for:
Scripts must:
If scripts exist, add fixtures or tests when behavior is non-trivial.
Use AGENTS-based workspaces as source material, not as the target form.
When converting:
process/ files as workspace-local event handlers;references/;templates/;Do not pretend conversion is lossless. A skill triggers when selected; it does not automatically govern every agent turn unless the host loads it.
Classify the target:
Inspect only what the target requires.
Use references/audit-rubric.md.
Report findings first, ordered by severity.
Check:
AGENTS.md;SKILL.md names all required references and templates;SKILL.md names the event-handler files it depends on;data/ paths are object-first or seed-knowledge paths, not vague buckets;Do not redesign unless the user asks.
Validation is stronger than inspection.
Structural checks:
test -f <skill-path>/SKILL.md
test -d process
test -d data || test -d <documented-data-path>
test -d output || test -d <documented-output-path>
Contract checks:
name and description;SKILL.md;Script checks:
--help or a harmless fixture;Do not say validated unless checks actually ran.
Say:
Scaffold report:
Summary
Files Created Or Changed
Architecture Choice
Skill Layout
Knowledge Distillation Chain
Event Handlers
Data And Output Paths
Reporting And Output
References
Templates
Scripts
Validation Status
Remaining Gaps
Audit report:
Summary
Scope
Inspected Files
Findings
Gaps
Validation Status
Recommended Next Steps
tools
<what this skill does>. Use when the user asks for <trigger phrases>, <task contexts>, or <expected workflow>.
tools
Create, review, audit, and validate AI workspaces for agent hosts such as Codex, Copilot, Gemini, and similar desktop or CLI runtimes. Use when the user asks to design an agent-ready repo, scaffold AGENTS.md and event handlers, create an API-backed or domain knowledge workspace, audit AGENTS.md or SKILL.md quality, or improve how a repo exposes behavior to coding agents.
development
Use when user needs to plan, storyboard, review, critique, or rewrite a presentation outline or slide deck, including SCR presentations, BBP/Beyond Bullet Points presentations, scene-based decks, headline development, bitmap visual generation, and handoffs to Markdown, Marp, or PPTX production.
development
Build and maintain local code-project wikis under .wiki or language-specific wiki roots such as .wiki-cn and .wiki-fr. Use this skill whenever the user mentions "wiki", "ingest", "refresh wiki", "update wiki", "lint wiki", "check wiki", "document the codebase", "export wiki", "bundle wiki", "archive wiki", or asks a question that can be answered from wiki pages. Also use it when the user asks how something works in the project and a wiki page could capture the answer for future reference.