Logo : Session To Skill And Blog

Session To Skill And Blog

Communauté
Innei
session-to-skill-and-blog

Transformez une session d’ingénierie terminée en un article de blog narratif et en zéro ou plusieurs compétences opérationnelles réutilisables. À utiliser lorsque l’utilisateur demande explicitement de valoriser, documenter ou publier une session terminée (« 写成 skill 再写一篇 blog », « 沉淀一下这次的折腾 », « productize this session » ou « publish this as a skill and a writeup »). Distinguez les faits propres au projet.

Add to TypingMind

Présentation

ÉditeurInnei
DépôtSKILL
Nom de la compétencesession-to-skill-and-blog
Étoiles
81
Forks
2
Fichiers inclus
18
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Fichiers inclus : 18

    Des scripts, des gabarits et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par Innei sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Session To Skill And Blog dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/Innei/SKILL/tree/main/skills/automation/session-to-skill-and-blog
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet 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
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Session To Skill And Blog dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Session To Skill And Blog dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Session To Skill And Blog n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

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.

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA Session To Skill And Blog ?

Transformez une session d’ingénierie terminée en un article de blog narratif et en zéro ou plusieurs compétences opérationnelles réutilisables. À utiliser lorsque l’utilisateur demande explicitement de valoriser, documenter ou publier une session terminée (« 写成 skill 再写一篇 blog », « 沉淀一下这次的折腾 », « productize this session » ou « publish this as a skill and a writeup »). Distinguez les faits propres au projet.

Pourquoi utiliser Session To Skill And Blog sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Session To Skill And Blog se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Session To Skill And Blog dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/Innei/SKILL/tree/main/skills/automation/session-to-skill-and-blog. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Session To Skill And Blog ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Session To Skill And Blog ?

Autant que vous le souhaitez. Vous pouvez utiliser Session To Skill And Blog avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Session To Skill And Blog est-elle gratuite ?

Cette compétence est publiée sur GitHub par Innei. Consultez le dépôt pour connaître les conditions de licence. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇