Logo di Session To Skill And Blog

Session To Skill And Blog

Community
Innei
session-to-skill-and-blog

Trasforma una sessione di ingegneria completata in un blog narrativo e in zero o più skill operative riutilizzabili. Usala quando l’utente chiede esplicitamente di trasformare in un prodotto, documentare o pubblicare una sessione conclusa ("写成 skill 再写一篇 blog", "沉淀一下这次的折腾", "productize this session" o "publish this as a skill and a writeup"). Separa i fatti specifici del progetto.

Add to TypingMind

Panoramica

Pubblicato daInnei
RepositorySKILL
Nome della skillsession-to-skill-and-blog
Stelle
81
Fork
2
File inclusi
18
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 18

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da Innei su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Session To Skill And Blog in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/Innei/SKILL/tree/main/skills/automation/session-to-skill-and-blog
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Session To Skill And Blog in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Session To Skill And Blog non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Session To Skill And Blog non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Session To Skill And Blog?

Trasforma una sessione di ingegneria completata in un blog narrativo e in zero o più skill operative riutilizzabili. Usala quando l’utente chiede esplicitamente di trasformare in un prodotto, documentare o pubblicare una sessione conclusa ("写成 skill 再写一篇 blog", "沉淀一下这次的折腾", "productize this session" o "publish this as a skill and a writeup"). Separa i fatti specifici del progetto.

Perché usare Session To Skill And Blog su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Session To Skill And Blog è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Session To Skill And Blog in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/Innei/SKILL/tree/main/skills/automation/session-to-skill-and-blog. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Session To Skill And Blog?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Session To Skill And Blog?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Session To Skill And Blog: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Session To Skill And Blog è gratuita?

È pubblicata su GitHub da Innei. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇