ssl-skill-normalizer
Converts human-readable skill documentation into machine-readable Scheduling-Structural-Logical (SSL) JSON.
Install
mkdir -p .claude/skills/ssl-skill-normalizer && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/17807" && unzip -o skill.zip -d .claude/skills/ssl-skill-normalizer && rm skill.zipInstalls to .claude/skills/ssl-skill-normalizer
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Normalize SKILL.md artifacts into Scheduling-Structural-Logical (SSL) JSON representations using a conservative multi-pass extraction pipeline.Key capabilities
- →Extracts scheduling layer fields from SKILL.md
- →Extracts structural layer (scenes) from SKILL.md
- →Extracts logical layer (logic steps) from SKILL.md
- →Validates extracted SSL JSON against schema
- →Retries generation if validation fails
- →Generates a normalization report
How it works
The skill converts markdown-based skill artifacts into a structured Scheduling-Structural-Logical (SSL) representation through a multi-pass extraction and validation pipeline.
Inputs & outputs
When to use ssl-skill-normalizer
- →Standardizing new agent skills
- →Preparing skill metadata for indexing
- →Validating skill documentation structure
About this skill
SSL Skill Normalizer
Purpose
This skill converts markdown-based skill artifacts into a structured Scheduling-Structural-Logical (SSL) representation as introduced in:
Liang et al., "From Skill Text to Skill Structure: The Scheduling-Structural-Logical Representation for Agent Skills", arXiv:2604.24026 (2026).
SSL addresses the core limitation of free-form skill text: it is human-readable but hard for agents to reason over, discover, and audit. By mapping each skill into three complementary layers, SSL makes skills searchable (improved MRR 0.573 → 0.707 in the paper) and risk-assessable (improved macro F1 0.744 → 0.787).
The Three SSL Layers
The representation is grounded in Schank & Abelson's theories of Memory Organization Packets (MOPs), Script Theory, and Conceptual Dependency. Each layer captures a different dimension of skill knowledge:
Layer 1 — Scheduling (When / Who)
Answers: When should this skill be invoked? By whom, given which inputs and outputs?
Fields extracted:
id— stable lowercase identifiername— human-readable skill namegoal— one-sentence purposeintent_signature— typed function signature (fn($input) -> $output)inputs—$-prefixed named input bindingsoutputs—$-prefixed named output bindingsdependencies— explicit runtime tool or library requirementscontrol_flow_features— e.g.sequential,conditional,loopentry_scene— ID of the first scene to executesubscene_refs— IDs of any nested/delegated scenes
Layer 2 — Structural (How / Order)
Answers: What are the macro-level execution stages and how do they connect?
Each scene is a named execution stage with:
id— unique within the skilltype— one of the restricted scene-type enum (see below)goal— what the scene accomplishesentry_condition— precondition for entering the sceneexit_condition— postcondition that must hold on exitnext_scene_rules— conditional transitions to the next scene ID,END_SUCCESS, orEND_FAILinputs/outputs—$-prefixed bindings consumed and producedentry_logic_step— ID of the first logic step in this scene
Layer 3 — Logical (What / Actions)
Answers: What atomic operations are performed, on which resources?
Each logic step is an indivisible operation with:
id— unique within the skillscene_id— owning sceneaction_type— one of the restricted action-type enum (see below)resource_scope— one of the restricted resource-scope enum (see below)description— one sentence describing the operationinputs/outputs— named$-variable bindingsnext— ID of the following step,YIELD_SUCCESS, orYIELD_FAIL
Restricted Enumerations
Scene Types
| Value | Meaning |
|---|---|
PREPARE | Setup: load inputs, configure environment |
ACQUIRE | Receive or fetch required data |
REASON | Analyze, infer, or plan |
ACT | Produce or transform primary output |
VERIFY | Validate outputs or preconditions |
RECOVER | Handle failure; retry or compensate |
FINALIZE | Write results, emit notifications, clean up |
Action Types
| Value | Meaning |
|---|---|
READ | Consume data from a resource without side effects |
SELECT | Choose among alternatives |
COMPARE | Diff or rank two or more values |
VALIDATE | Assert a constraint or schema |
INFER | Derive new information via reasoning |
WRITE | Produce or overwrite data in a resource |
UPDATE_STATE | Mutate shared state |
CALL_TOOL | Invoke an external tool or subprocess |
REQUEST | Send a request to an external service |
TRANSFER | Move data between resources |
NOTIFY | Emit a message or event |
TERMINATE | End execution and return control |
Resource Scopes
| Value | Meaning |
|---|---|
MEMORY | In-process working memory |
LOCAL_FS | Local file system |
CODEBASE | Source code under version control |
PROCESS | OS process or shell |
USER_DATA | User-provided or personal data |
CREDENTIALS | Secrets, tokens, or credentials |
NETWORK | Remote network resource |
OTHER | Any resource not covered above |
Terminal Targets
- Scene transitions:
END_SUCCESS|END_FAIL - Logic-step transitions:
YIELD_SUCCESS|YIELD_FAIL
Behavioral Requirements
General Rules
- Only extract information directly supported by the source artifact.
- Do not invent hidden behavior, tools, dependencies, or side effects.
- Use restricted enum vocabularies only; never free-form strings in typed fields.
- Reject malformed outputs instead of silently repairing them.
- Prefer
null, empty arrays, or coarse-grained classifications when evidence is weak.
Execution Pipeline
Pass 1: Scheduling Extraction
Read the source SKILL.md, then extract the scheduling layer.
Produce scheduling with all fields in Layer 1. When evidence is absent for an optional field, emit an empty array or null.
Requirements
- Use only explicit evidence from the source document.
- Preserve semantic intent without paraphrasing behavior into unsupported claims.
- Normalize all identifiers to
snake_case.
Pass 2: Scene Decomposition
Analyse the skill's execution flow and decompose it into macro-level scenes.
Requirements
- Prefer 2–5 scenes when supported by the source. Only add more if the source describes clearly distinct phases.
- Assign only allowed scene types from the enum table.
- For each scene define: goal, entry_condition, exit_condition, next_scene_rules, inputs, outputs, entry_logic_step.
Constraints
- Every
next_scene_rulestarget must resolve to another scene ID,END_SUCCESS, orEND_FAIL. - Include a
RECOVERscene when the source describes retry or error-recovery behaviour.
Pass 3: Logic-Step Expansion
Expand each scene into its sequence of atomic logic steps.
Split a step whenever any of the following changes:
- action type
- resource boundary
- execution effect
- control-flow behaviour
Requirements
- Assign only allowed action types and resource scopes.
- Use
$-prefixed variable bindings for all named data ($user_request,$selected_file,$generated_output). - Do not use unnamed or free-form intermediate variables.
Pass 4: Validation
Validate the draft SSL JSON against all of the following rules:
| Rule | Check |
|---|---|
| JSON syntax | Well-formed JSON |
| Required fields | All top-level fields present |
| Enum membership | All enum fields use allowed values only |
| Unique identifiers | All scene IDs and step IDs are globally unique |
| Entry pointer | entry_scene references an existing scene ID |
| Scene entry pointer | entry_logic_step references an existing step ID |
| Scene containment | All referenced scene IDs exist |
| Logic-step containment | All referenced step IDs exist |
| Transition validity | All transition targets are valid scene/step IDs or terminal values |
| Graph integrity | No unreachable scenes or dangling references |
Failure Handling
- Retry malformed generations within a bounded retry budget (recommend ≤ 3 retries).
- Record each validation failure with the specific rule that was violated.
- Reject records that remain invalid after retries; do not silently emit invalid JSON.
Reporting
Generate a normalization report containing:
- processed artifact count
- valid SSL count
- rejected SSL count
- parse failures
- schema failures
- graph failures
- enum failures
- retry counts
Include per-artifact diagnostics with the specific Pass-4 rule that caused rejection.
Do not expose secrets or credentials in reports.
Success Criteria
The skill succeeds when:
- a valid SSL JSON artifact is produced
- all references resolve correctly
- all enum values are valid
- the output passes all Pass-4 validation rules
- the output remains grounded in the source artifact with no invented behaviour
The skill fails when:
- required graph structures are missing
- transitions are invalid
- unsupported inference is required to fill required fields
- validation errors remain unresolved after retries
Output Expectations
Primary Output
A schema-valid SSL JSON file named ssl.json placed alongside the source SKILL.md. Top-level keys: scheduling, scenes, logic_steps.
Secondary Output
A validation and normalization report summarizing accepted artifacts, rejected artifacts, per-artifact validation diagnostics, and retry behaviour.
Safety Constraints
- Never invent credentials or external systems.
- Never infer unstated side effects.
- Never fabricate execution logic not present in the source.
- Never silently repair invalid graph structures.
- Never emit malformed JSON intentionally.
- Keep normalization deterministic where possible.
Reuse Instructions
To apply this skill to a SKILL.md artifact:
- Invoke this skill with
skill_pathpointing to the targetSKILL.md. - The normalizer runs all four passes in sequence.
- If Pass 4 fails, the
RECOVERpass retries generation up to the retry budget. - The resulting
ssl.jsonis written alongside the source file. - Review the
validation_reportoutput to confirm acceptance.
For batch normalization, invoke this skill once per artifact and aggregate the per-artifact reports.
When not to use it
- →When the goal is to invent hidden behavior, tools, dependencies, or side effects
- →When free-form strings are desired in typed fields
- →When malformed outputs should be silently repaired
Limitations
- →Only extracts information directly supported by the source artifact
- →Uses restricted enum vocabularies only; never free-form strings in typed fields
- →Rejects malformed outputs instead of silently repairing them
How it compares
This skill transforms unstructured skill documentation into a structured SSL representation, making skills searchable and risk-assessable, unlike manual interpretation of free-form text.
Compared to similar skills
ssl-skill-normalizer side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| ssl-skill-normalizer (this skill) | 0 | 2mo | Review | Advanced |
| notion-knowledge-capture | 10 | 8mo | No flags | Intermediate |
| feishu-doc | 14 | 4mo | No flags | Intermediate |
| openspec-continue-change | 4 | 5mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by github
View all by github →You might also like
notion-knowledge-capture
makenotion
Transforms conversations and discussions into structured documentation pages in Notion. Captures insights, decisions, and knowledge from chat context, formats appropriately, and saves to wikis or databases with proper organization and linking for easy discovery.
feishu-doc
openclaw
Feishu document read/write operations. Activate when user mentions Feishu docs, cloud docs, or docx links.
openspec-continue-change
studyzy
通过创建下一个产出物继续处理 OpenSpec 变更。当用户想要推进其变更、创建下一个产出物或继续其工作流程时使用。
kimi-cli-help
MoonshotAI
Answer Kimi Code CLI usage, configuration, and troubleshooting questions. Use when user asks about Kimi Code CLI installation, setup, configuration, slash commands, keyboard shortcuts, MCP integration, providers, environment variables, how something works internally, or any questions about Kimi Code CLI itself.
openspec-archive-change
studyzy
归档实验性工作流中已完成的变更。当用户想要在实现完成后最终确定并归档变更时使用。
feishu-perm
m1heng
Feishu permission management for documents and files. Activate when user mentions sharing, permissions, collaborators.