Logo van Session To Skill And Blog

Session To Skill And Blog

Community
Innei
session-to-skill-and-blog

Zet een afgeronde engineering-sessie om in een verhalende blog en nul of meer herbruikbare operationele skills. Gebruik dit wanneer de gebruiker expliciet vraagt om een afgeronde sessie te productiseren, documenteren of publiceren ("写成 skill 再写一篇 blog", "沉淀一下这次的折腾", "productize this session" of "publish this as a skill and a writeup"). Houd projectspecifieke feiten apart.

Add to TypingMind

Overzicht

UitgeverInnei
RepositorySKILL
Skillnaamsession-to-skill-and-blog
Sterren
81
Forks
2
Meegeleverde bestanden
18
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 18

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door Innei op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Session To Skill And Blog in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/Innei/SKILL/tree/main/skills/automation/session-to-skill-and-blog
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Innei/SKILL.git /tmp/SKILL
mkdir -p .claude/skills
cp -r /tmp/SKILL/skills/automation/session-to-skill-and-blog .claude/skills/session-to-skill-and-blog
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Session To Skill And Blog in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Session To Skill And Blog automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Session To Skill And Blog niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

session-to-skill-and-blog

Turn session evidence into the appropriate durable outputs:

  • a blog that explains the experience, reasoning, and conclusion;
  • zero or more skills that let a future agent execute reusable capabilities;
  • project documentation for facts and conventions that remain local.

Do not force a one-to-one pair. One blog may attach no skill, one skill, or several skills; one skill may support several later blogs. The outputs share evidence, not structure.

Confirm authoring choices, then classify. For every accepted skill candidate, author and push the skill before writing the blog. This preserves the operational contract before narrative compression. If intake said no skill, or no candidate passes the skill gate, write the blog without inventing a skill.

References

This file is a thin index. Load the matching reference when you start the actual work:

FileWhen to load
references/writing-style.mdBefore drafting prose — reading contract, title and slug, sections, narrative, argument, narrator, and anti-slop editing.
references/node-usage.mdBefore using any extension node — deletion test, escalation ladder, catalog rule.
references/visuals.mdWhen prose creates a visual-explanation question, or when uploading image assets.
references/editorial-models.mdOnly when revising the editorial policy — primary-source research and derived principles.
references/publish-flow.mdWhen authoring-reviewing / creating / editing / publishing the post.
references/widget-template/When authoring a new <dynamic> widget.
references/envelope.template.xmlCopy as the post envelope before pasting the LiteXML body.
no-ai-slop (via load-no-ai-slop.sh)After the draft is written, before publishing — detect candidates, revise manually, rerun.

For LiteXML tag syntax itself, load the litexml-authoring skill (fresh via load-litexml.sh) — this skill governs whether/when, that one governs how.

Configuration

~/.config/innei-skills/config.json (see references/config.example.json):

json
{ "skill_repo_dir": "~/git/innei-repo/SKILL" }

Missing key → fallback to ~/git/innei-repo/SKILL. Domains: infrastructure / automation / writing / research / content. Prereqs once per machine: npm i -g @mx-space/cli (Node ≥ 22, ≥ 0.16.0 — check mxs draft --help and mxs author --help); mxs auth login.

Scripts

Define $S once per session. Search known locations; the first that contains resolve-skill-repo.sh wins:

bash
S=""
for cand in \
  "$HOME/.claude/skills/session-to-skill-and-blog/scripts" \
  "$HOME/.codex/skills/session-to-skill-and-blog/scripts" \
  "$HOME/.agents/skills/session-to-skill-and-blog/scripts" \
  "$(git rev-parse --show-toplevel 2>/dev/null)/.claude/skills/session-to-skill-and-blog/scripts" \
  "$(git rev-parse --show-toplevel 2>/dev/null)/.agent/skills/session-to-skill-and-blog/scripts" \
  "$(git rev-parse --show-toplevel 2>/dev/null)/skills/automation/session-to-skill-and-blog/scripts"
do
  [ -n "$cand" ] && [ -f "$cand/resolve-skill-repo.sh" ] && {
    S="$(cd "$cand" && pwd)"; break
  }
done
[ -n "$S" ] || { echo "error: cannot locate session-to-skill-and-blog/scripts" >&2; exit 1; }
REPO="$(bash "$S/resolve-skill-repo.sh")"
ScriptWhat it does
resolve-skill-repo.shPrint absolute path to the SKILL repo (config-driven, with fallback).
scaffold-skill.shCreate dir + stub SKILL.md + README row (alphabetical, domain-scoped) + both flat symlinks; git add staged.
load-litexml.shdegit the latest litexml-authoring subtree into ~/.cache/.
load-no-ai-slop.shdegit the latest no-ai-slop skill into ~/.cache/. If unavailable, report it and continue with the internal hard-ban sweep.
push-skill.shIdempotent mxs snippet put sk/<name>/SKILL.md --type skill, plus sibling assets as --type text. Emits the snowflake id on stdout.
create-draft.shmxs draft create with aiGen=2, --open, --silent → { ok, id }; --skill-id <id> (repeatable) threads ids into meta.skillIds.
get-post.shmxs post get <slug> --output xml — round-trip step 1.
update-post.shmxs post update <slug> --file … — strips <state>, then updates.
image-meta.mjsEmit width / height / thumbhash for a LiteXML <img>. Run from a project that has sharp + thumbhash (e.g. mx-core).

Workflow

text
[0] Confirm persona and skill pairing (interactive tool if available)
[1] Inventory and classify session evidence
[2] State and evaluate each capability thesis
       intake = none ──> skip to [5]
       rejected ──> blog or project documentation
       accepted ──> one coherent skill
[3] Scaffold, author, validate, commit, and push accepted skills
[4] Push accepted skills to mx-core and collect their ids
[5] Write the blog from the narrative evidence
[6] Publish via mxs with zero or more --skill-id arguments

[0] Confirm authoring choices

Do this before [1]. If the triggering message already answered both questions, record those answers and continue. Otherwise ask, then wait.

If the runtime has an interactive question tool (AskUserQuestion, ask_user_question, or equivalent), ask both questions in one call. If no such tool exists, ask the same two questions in chat. Do not start [1] until both answers are recorded.

Ask in Chinese. Map the answers as follows; do not invent extra questions.

  1. 你想用哪种写作人格去编写这篇文章?

    OptionRecord asMeaning
    Agent 第一人称agent「我」是 agent
    站长第一人称site-owner「我」是站长
    中性叙述neutral不用「我」
    看材料再定deferChoose after the spine

    Narrator attribution lives in writing-style.md. A custom "Other" answer maps to the closest of these four, or follows the user's wording when it already names a narrator.

  2. 这篇文章需要搭配一个 skill 吗?

    OptionRecord asEffect
    需要requiredRun [2]–[4]; a failing gate still yields a blog without a skill
    不需要noneSkip [2]–[4]; write the blog only
    看材料再定deferExisting semantic gate decides

A recorded agent / site-owner / neutral overrides the spine default in writing-style.md. none skips skill work even if a candidate would pass.

[1] Inventory and classify

Collect decision points, failed assumptions, symptom-to-cause evidence, commands, reusable procedures, safety boundaries, verification results, and project-local facts. Classify each item by its future function:

DestinationIncludeExclude
BlogContext, chronology, argument, representative failures, and interpretationExhaustive operating instructions
SkillRepeatable action, decision boundary, non-obvious constraint, and observable proofSession chronology and personal reflection
Project documentationRepository-specific ownership, commands, architecture, and persistent local conventionsGeneral reusable workflow

Treat code or configuration length only as a resource-planning signal. It is not evidence that a skill should exist.

[2] State and evaluate the capability thesis

If intake recorded none, skip this step and [3]–[4].

Write this sentence before scaffolding a candidate:

This skill helps an agent [action] [target] when [trigger], while preserving [constraint], and verifies success through [observable outcome].

Reject or redirect the candidate unless every gate passes:

GatePass conditionIf it fails
TriggerabilityA concrete future user request can activate it.Keep the material in the blog.
RepeatabilityThe action or decision is likely to recur.Use the blog or project documentation.
Knowledge deltaIt teaches non-obvious procedure, local integration, or a hard-won failure boundary.Do not create a skill.
CoherenceIt has one trigger family, one operational target, and one primary outcome.Split independent capabilities.
VerifiabilitySuccess is externally observable.Treat it as analysis or reference material.
StabilityThe core method survives routine version changes.Move volatile facts to references or project documentation.
Boundary clarityIt states exclusions and stopping conditions.Narrow the capability.

Name accepted skills with a concise, verb-led target and action. Prefer split-dokploy-traffic-safely over traefik-notes, and migrate-nextjs-rsc-under-cdn-constraints over nextjs-migration.

Keep one capability thesis per skill. Split candidates when their triggers, targets, or completion criteria can vary independently. Place cross-project capabilities in this repository; place facts that only future work in one repository needs in that repository's agent or project documentation.

Plan bundled resources by function, not by arbitrary line count:

ResourceAdd when
scripts/An operation is deterministic, fragile, or repeatedly rewritten.
references/Schemas, protocols, detailed examples, or volatile facts would obscure the operational core.
assets/The skill must copy or transform an output resource.

Do not create empty resource directories.

[3] Scaffold, author, and push accepted skills

bash
bash "$S/scaffold-skill.sh" <domain> <skill-name> "<one-line purpose>"

Use the scaffold once for each accepted capability. Author the skill as an execution interface for a future agent, not as a compressed version of the blog.

Every generated skill requires this contract:

Required elementStandard
FrontmatterInclude only name and description. Put both capability and all trigger conditions in description; do not repeat a body-level "When to use" section.
Capability boundaryState the outcome, prerequisites, exclusions, and stopping conditions.
Operational coreGive the shortest sufficient procedure or decision path in dependency order. Use imperative instructions.
VerificationProve the externally meaningful outcome, including safety checks where relevant.

Add the following sections only when they carry real operational information:

Conditional elementAdd when
Decision tableMultiple conditions select different actions.
Flow or architecture diagramOwnership, sequence, or data flow is difficult to understand linearly.
PitfallsObserved failures have recognizable symptoms and actionable fixes.
RollbackThe procedure changes external or difficult-to-recover state.
ExamplesAn example materially clarifies input, output, or a decision boundary.

Do not emit empty sections to satisfy a template. Do not repeat generic technical knowledge. Keep the main file below 500 lines and use progressive disclosure for details.

Validate each folder with the available skill validator before committing. Then commit and push the accepted skill:

bash
cd "$REPO" && git add "skills/<domain>/<skill-name>" && git commit -m "feat: add <skill-name> skill" && git push

The pre-commit hook enforces: README row exists inside the matching domain table; both flat symlinks present and resolved. Skill URL (for reference only — never mentioned in the blog body; the skill card carries the linkage): https://github.com/Innei/SKILL/tree/main/skills/<domain>/<skill-name>

[4] Push accepted skills to mx-core

For every accepted skill, push its SKILL.md to mx-core's snippet store so the reader-facing <SkillCardList> can render it and the public raw URL (${MXS_API_URL}/api/v3/s/sk/<name>) exists.

bash
SKILL_ID=$(bash "$S/push-skill.sh" "$REPO/skills/<domain>/<skill-name>/SKILL.md")

Run the command once per skill and retain every returned id. The script is idempotent — mxs snippet put upserts by path. Sibling asset files are pushed as --type text under sk/<name>/ — the backend rejects --type skill for any path not ending in /SKILL.md, and without them relative links inside SKILL.md 404 on the public site. Capture the returned id; step [6] threads it through create-draft.sh.

If a skill never reaches mx-core, the blog may still publish without that install card. If no skill candidate passed the gate, skip this step entirely.

[5] Write the blog

Load writing-style.md, node-usage.md, and visuals.md before drafting. Do not restate those rules here.

Use the recorded narrator. If intake recorded defer, choose after the spine per writing-style.md.

After choosing the reader contract and article spine, derive a working title and stable slug. Finalize the title after the draft proves its central claim; do not allow a sharper generalization to erase the defining technology or system from the title.

Once the draft is complete:

bash
SLOP_CACHE=$(bash "$S/load-no-ai-slop.sh") || {
  echo "no-ai-slop unavailable; continue with the internal hard-ban sweep"
}
# Read $SLOP_CACHE/SKILL.md. Detect candidates only; revise them by hand,
# rerun the sweep, and leave no unresolved finding. Never auto-rewrite.

Medium: default LiteXML (for the site owner's blog).

bash
LITEXML_CACHE=$(bash "$S/load-litexml.sh")
# Read $LITEXML_CACHE/SKILL.md and its references as needed.

Plain Markdown is fine when no haklex-specific tags are needed.

Do not convert the skill body into article sections. Reconstruct the blog from the narrative evidence: establish the problem, expose the consequential decisions, support claims with concrete evidence, and state the resulting view. A rejected skill candidate may still supply valuable narrative material.

[6] Publish via mxs

Follow publish-flow.md end to end — starting with mxs author (stop, wait for the user, read <file>.diff), then the post---file metadata re-attach and the post-publish metadata verification. Pass zero or more --skill-id arguments according to the accepted and successfully pushed skills. Paste the final URL back into the originating session.

Failure boundaries

Only mistakes that happen before the reference files are loaded. Publish, voice, and node rules live in those files.

MistakeFix
Skipping intake when the trigger did not already answerAsk both questions before [1]; use the interactive tool when it exists.
Choosing narrator after a recorded intake personaUse the recorded narrator.
Authoring a skill after intake noneSkip [2]–[4].
Forcing every blog to have exactly one skillApply the semantic gate; allow zero, one, or several skills.
Deriving the skill scope from the blog titleDefine a future trigger, action, boundary, and observable outcome.
Creating a skill because the session contains long codeRequire repeatability and a non-obvious knowledge delta first.
Combining independent triggers in one skillSplit by trigger family, target, and completion criterion.
Copying the blog chronology into SKILL.mdPreserve only the executable method and decision boundaries.
Adding empty workflow, pitfalls, or diagram sectionsInclude conditional sections only when they improve execution.
Repeating trigger rules in a body-level "When to use" sectionPut all triggering information in the frontmatter description.
Blog before an accepted skillFinish and push every accepted skill before drafting the blog.
SKILL.md contains large deterministic procedures inlineMove repeated or fragile operations to scripts/; move detailed supporting material to references/.
Mentioning the skill in the blog bodyZero in-text mention. meta.skillIds renders the skill card.
--no-verify to bypass the pre-commit hookFix the root cause. The hook now requires the README row inside the matching domain table.
Hardcoding the SKILL repo path in shellbash "$S/resolve-skill-repo.sh".
Locating $S via ~/.claude/skills/... onlyUse the search loop above.
Stale local litexml-authoring / no-ai-slop cloneload-litexml.sh / load-no-ai-slop.sh refresh via degit. If no-ai-slop cannot load, skip and say so.
Skill written in ChineseSkill in English. Blog in the user's chosen language (default Chinese).
Skipping push-skill.sh and embedding only the GitHub URLThe install card reads meta.skillIds. Without --skill-id, it never renders.
Form / narrator / voice / slop mistakeswriting-style.md.
Title states a lesson but drops the defining technologyRestore the identity anchor, then qualify it with the earned claim.
Node sprinkling, invented <dynamic> URLsnode-usage.md.
Draft/meta/<state> / category / publish mistakespublish-flow.md.

Verification

  • $S resolved via the search loop; bash "$S/resolve-skill-repo.sh" points at a real directory before any write.
  • Intake answers recorded (or already present in the trigger) before [1].
  • Draft narrator matches the recorded persona, or the deferred spine rule.
  • Skill work skipped when intake said none; gates still applied when required or defer.
  • Session evidence was classified among blog, reusable skill, and project documentation.
  • Every skill has a capability thesis and passes all seven semantic gates.
  • Every skill has one trigger family, one operational target, and one primary observable outcome.
  • Frontmatter contains only name and description; the description carries all trigger conditions.
  • The body contains the capability boundary, operational core, and verification without empty conditional sections.
  • Scripts, references, and assets exist only when they improve deterministic reuse or progressive disclosure.
  • Every accepted skill passed validation and the repository pre-commit hook; git push succeeded.
  • Every successfully published skill returned a snowflake id and its ${MXS_API_URL}/api/v3/s/sk/<name> URL resolves.
  • Blog body has zero mention of the skill — the skill card carries the linkage.
  • Voice, node, and visual checks in writing-style.md / node-usage.md / visuals.md passed.
  • Final title preserves the technical identity anchor and makes no claim broader than the evidence; slug uses stable searchable terms.
  • no-ai-slop detect sweep rerun after manual edits with no unresolved finding; if the loader failed, the internal hard-ban sweep still passed and the failure was reported.
  • meta.skillIds contains exactly the successfully pushed skills; it is absent or empty when no skill passed the gate.
  • Publish checklist in publish-flow.md passed; final post URL pasted back into the originating session.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Session To Skill And Blog?

Zet een afgeronde engineering-sessie om in een verhalende blog en nul of meer herbruikbare operationele skills. Gebruik dit wanneer de gebruiker expliciet vraagt om een afgeronde sessie te productiseren, documenteren of publiceren ("写成 skill 再写一篇 blog", "沉淀一下这次的折腾", "productize this session" of "publish this as a skill and a writeup"). Houd projectspecifieke feiten apart.

Waarom Session To Skill And Blog gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Session To Skill And Blog bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Session To Skill And Blog in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/Innei/SKILL/tree/main/skills/automation/session-to-skill-and-blog. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Session To Skill And Blog gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Session To Skill And Blog gebruiken?

Zoveel als je wilt. Je kunt Session To Skill And Blog gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Session To Skill And Blog gratis?

Deze skill is door Innei op GitHub gepubliceerd. Bekijk de repository voor de licentievoorwaarden. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇