Logo de Session To Skill And Blog

Session To Skill And Blog

Comunidade
Innei
session-to-skill-and-blog

Transforme uma sessão de engenharia concluída em um blog narrativo e em zero ou mais habilidades operacionais reutilizáveis. Use quando o usuário pedir explicitamente para transformar em produto, documentar ou publicar uma sessão concluída ("写成 skill 再写一篇 blog", "沉淀一下这次的折腾", "productize this session" ou "publish this as a skill and a writeup"). Classifique separadamente os fatos específicos do projeto.

Add to TypingMind

Visão geral

Publicado porInnei
RepositórioSKILL
Nome da habilidadesession-to-skill-and-blog
Estrelas
81
Forks
2
Arquivos incluídos
18
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 18

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por Innei no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Session To Skill And Blog no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/Innei/SKILL/tree/main/skills/automation/session-to-skill-and-blog
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse 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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Session To Skill And Blog em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Session To Skill And Blog automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Session To Skill And Blog não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo 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.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Session To Skill And Blog faz?

Transforme uma sessão de engenharia concluída em um blog narrativo e em zero ou mais habilidades operacionais reutilizáveis. Use quando o usuário pedir explicitamente para transformar em produto, documentar ou publicar uma sessão concluída ("写成 skill 再写一篇 blog", "沉淀一下这次的折腾", "productize this session" ou "publish this as a skill and a writeup"). Classifique separadamente os fatos específicos do projeto.

Por que usar Session To Skill And Blog no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Session To Skill And Blog é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Session To Skill And Blog no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/Innei/SKILL/tree/main/skills/automation/session-to-skill-and-blog. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Session To Skill And Blog?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Session To Skill And Blog?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Session To Skill And Blog com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Session To Skill And Blog é gratuita?

A habilidade é publicada no GitHub por Innei. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇