Synthèse automatique
Met à jour les artefacts d’un changement Speclink existant en intégrant un fichier de plan ou le contexte de la conversation, y compris les conclusions de discussions liées et les réintégrations de changements obsolètes.
Points forts
- Prend en charge un chemin de plan explicite, la détection automatique du plan et la sélection parmi les fichiers récents via AskUserQuestion.
- Prévoit un repli sur le contexte conversationnel et demande des précisions si celui-ci est insuffisant.
- Gère les discussions liées et les changements marqués obsolètes avec fromDiscussions/restaleFrom, et utilise une commande de liaison idempotente.
- Indique clairement le prérequis du CLI speclink et s’arrête en cas d’échec de la commande.
Limites
- Ne concerne que la mise à jour d’un changement Speclink existant, pas sa création.
- Dépend du CLI speclink et, pour les fichiers de plan, du répertoire ~/.claude/plans de Claude Code.
- Les instructions fournies sont tronquées au milieu d’une étape, donc le traitement complet des changements obsolètes et la clôture finale ne peuvent pas être vérifiés.
À utiliser lorsqu’il faut intégrer un plan ou la conclusion d’une discussion dans un changement Speclink déjà existant.
À éviter lorsqu’aucun changement Speclink n’existe encore ou lorsque le CLI speclink n’est pas disponible.
Analyse de sécurité
PrudenceThe skill is an ordinary spec-workflow helper: it runs a vendor CLI and edits documentation artifacts. There is no destructive command (no rm -rf, no curl|sh, no base64 payloads), no credential or data exfiltration, and no attempt to disable safety controls or alter the auditor's role. Risk is limited to shell/CLI execution and file read/write in the user's project and plan directory, which is appropriate for its stated purpose, so it rates caution rather than risky.
- •Instructs repeated execution of an external `speclink` CLI (list/show/discuss/instructions/analyze/validate/link/seal) without any declared allowed-tools or version/integrity verification of that binary
- •Writes and merges content into project artifact files and reads user plan files under `~/.claude/plans/`, so it has filesystem read/write reach beyond the skill directory
- •State-mutating commands (`speclink discuss link` / `seal`, `speclink validate`) alter Speclink metadata and discussion lifecycle status; effects are persistent but scoped to the tool's own state
- •Step 9 tells the agent to mark discussions as promoted automatically once content is folded in, which is a self-certifying step with no human confirmation
- •Instructions direct the agent to execute numerous shell commands via an undeclared external CLI (`speclink list/show/status/analyze/validate/discuss link/seal`), yet no allowed-tools are declared — the skill relies on implicit bash/shell execution.
- •Reads and lists files under the user's home directory (`~/.claude/plans/`), including auto-detecting the 5 most recent plan files, which touches potentially sensitive local context outside the project.
- •The `speclink discuss seal` / `link` steps mutate persistent project state (marking discussions as promoted/已轉出 and clearing `restaleFrom` flags); legitimate for the tool but not obviously reversible by the agent.
- •Depends on an unverified third-party binary being installed; a malicious or spoofed `speclink` on PATH would receive all these invocations, but the skill itself contains no download/install step.
Exemples
/speclink-ingest ~/.claude/plans/agile-discovering-rocket.md/speclink-ingestUse speclink-ingest to re-ingest the current Speclink change from its linked discussion conclusions and update the artifacts.name: speclink-ingest description: "Update an existing Speclink change from external context" license: MIT compatibility: Requires speclink CLI. metadata: author: speclink version: "v1.19.4" generatedBy: "Speclink"
Update an existing Speclink change — from a plan file or conversation context.
Plan file support is available when the tool has a plan directory (~/.claude/plans/). Otherwise, use conversation context to update artifacts.
Prerequisites: This skill requires the speclink CLI. If any speclink command fails with "command not found" or similar, report the error and STOP.
Input: Optionally specify a plan file path or name.
/speclink-ingest ~/.claude/plans/agile-discovering-rocket.md/speclink-ingest agile-discovering-rocket/speclink-ingest(use conversation context or auto-detect plan file)
Steps
-
Locate the requirement source
a. Argument provided → treat as plan file reference (prepend
~/.claude/plans/and append.mdif needed)- If the file exists → use it as the plan file source, proceed to Step 2
- If the file does NOT exist → report the error and stop
b. No argument, plan file detectable:
- Check conversation context for plan file path (plan mode system messages include the path like
~/.claude/plans/<name>.md) - If found and the file exists → use the AskUserQuestion tool to ask:
- Option 1: Use the plan file
- Option 2: Use conversation context
- If the user picks plan file → proceed to Step 2
- If the user picks conversation context → skip Step 2, go to Step 3
c. No argument, no plan file detectable:
- Check
~/.claude/plans/for recent files - If recent files exist → list 5 most recent with the AskUserQuestion tool, include "Use conversation context" as an additional option
- If the user picks a file → proceed to Step 2
- If the user picks conversation context → skip Step 2, go to Step 3
d. Conversation context fallback (no plan files found at all):
- Use conversation context to update artifacts
- If conversation context is insufficient, use the AskUserQuestion tool to get more details
- Warn: "No plan file found. Using conversation context."
Source is a discussion conclusion? When the update being folded in comes from a concluded discussion — the discuss skill routed its Capture to at this existing change, or the change already carries a
from_discussionlink — treat that discussion's conclusion as a first-class source, not just the conversation context:-
Discover the linked discussion(s):
speclink show <change> --jsonexposesfromDiscussions(the change'sfrom_discussionchain). -
Read each linked discussion's conclusion and fold it into the artifacts alongside the conversation/plan context (merge, do not replace what you already have):
speclink discuss show <slug> --json -
Confirm the lifecycle chain is forged before touching artifacts:
speclink discuss link <slug> <change>
linkis idempotent (a no-op when the discuss step already ran it) and forges ONLY the change-side chain — it does NOT mark the discussion promoted. Marking it 已轉出 is sealed at the END of this workflow (see the final step), once the artifacts actually carry the discussion's content. Without the link, the discussion never archives with the change it fed.Change flagged stale (
restaleFrom)? Whenspeclink show <change> --jsonexposes a non-emptyrestaleFrom, those discussions were re-concluded after this change last sealed them — its artifacts are now stale against the newer conclusions (speclink analyze <change>surfaces the same as an informational finding, and the desktop board shows a "待重新反映" badge). This is exactly a re-ingest: for each slug inrestaleFrom, read the discussion's current conclusion (speclink discuss show <slug> --json), fold the revised decision into the artifacts, and the seal at the END of this workflow clears that slug fromrestaleFrom— marking the reflection honest again. -
Parse the plan structure (skip if using conversation context)
Claude Code plan files typically contain:
- Title (
# ...) — the high-level goal - Context section — background, motivation, current state
- Stages/Steps — numbered implementation stages with goals and file lists
- Files involved — list of files to modify/create
- Verification section — how to test the changes
Extract:
plan_title: from the H1 headingplan_context: from the Context sectionplan_stages: each numbered stage with its goal and file listplan_files: all file paths mentionedplan_verification: verification steps
- Title (
-
Check for active changes (REQUIRED — ingest only updates existing changes)
speclink list --jsonParse the JSON output to get the full list of changes.
- If one change exists → use the AskUserQuestion tool to confirm updating it
- If multiple changes exist → use the AskUserQuestion tool to let user pick which one to update
- If no changes at all → tell the user: "No active change found. Use
/speclink-proposefirst to create one." and stop
-
Select the change
Read existing artifacts for context before updating.
-
Update artifacts
For each artifact, get instructions first:
speclink instructions <artifact-id> --change "<name>" --jsonUse the
templatefrom instructions as the output structure. Applycontextandrulesas constraints but do NOT copy them into the file.The instructions JSON includes
locale— the language to write artifacts in. If present, you MUST write the artifact content in that language. Spec files (specs/*/*.md) default to English instead — unless the project setsspec_localein.speclink.yamloropenspec/config.yaml(a locale code, orautoto followlocale), in which case write spec prose in that language. Structural markers (### Requirement:,#### Scenario:,- **WHEN**/- **THEN**) and normative keywords (SHALL/MUST) always stay in English.Plan-to-Artifact Mapping (when using a plan file):
| Plan Section | Artifact | How to Map | | ------------------ | ---------------- | ------------------------------------------------- | | Title | Change name | Convert to kebab-case | | Context | proposal: Why | Direct content transfer | | Stages overview | proposal: What | Summarize all stages | | Individual stages | tasks.md groups | One stage = one
##heading, sub-items =- [ ]| | File paths | proposal: Impact | Affected code list | | Verification steps | tasks.md | Final verification task group |Context-to-Artifact Mapping (when using conversation context):
| Conversation Element | Artifact | How to Map | | -------------------- | ---------------- | ---------------------------------- | | Goal / requirement | proposal: Why | Extract motivation from discussion | | Discussed approach | proposal: What | Summarize agreed approach | | Mentioned files | proposal: Impact | Affected code list | | Discussion phases | tasks.md groups | One topic = one
##heading |When updating an existing change:
- Merge new context into existing proposal (don't replace)
- Add new tasks from plan stages or conversation, preserve completed
[x]items - Do NOT remove existing content
After creating each artifact, re-check status:
speclink status --change "<name>" --jsonContinue until all
applyRequiresartifacts are complete. Show progress: "✓ Created <artifact-id>" -
Inline Self-Review (before CLI analysis)
After updating all artifacts, scan them manually. Fix issues inline, then proceed to the CLI analyzer.
Check 1: No Placeholders
These patterns are artifact failures — fix each one before proceeding:
- "TBD", "TODO", "FIXME", "implement later", "details to follow"
- Vague instructions: "Add appropriate error handling", "Handle edge cases", "Write tests for the above"
- Delegation by reference: "Similar to Task N" without repeating specifics
- Steps describing WHAT without HOW: "Implement the authentication flow" (what flow? what steps?)
- Empty template sections left unfilled
- Weasel quantities: "some", "various", "several" when a specific number or list is needed
Check 2: Internal Consistency
- Does every capability in the proposal have a corresponding spec?
- Does the design reference only capabilities from the proposal?
- Do tasks cover all design decisions, and nothing outside proposal scope?
- Are file paths consistent across proposal Impact, design, and tasks?
Check 3: Scope Check
- More than 15 pending tasks → consider decomposing into multiple changes
- Any single task would take more than 1 hour → split it
- Touches more than 3 unrelated subsystems → consider splitting
Check 4: Ambiguity Check
- Are success/failure conditions testable and specific?
- Are boundary conditions defined (empty input, max limits, error cases)?
- Could "the system" refer to multiple components? Be explicit.
Check 5: Preservation Check (ingest-specific)
- Are all completed tasks
[x]still present and unchanged? - Was existing content merged (not replaced)?
Check 6: Durable Handoff Review (run BEFORE the CLI analyzer)
The updated change has to survive being handed to another agent. Reject and fix any of the following on incomplete design and task content (do not rewrite completed
[x]tasks):- File-path-only tasks: a pending task whose entire description is "edit file X" with no behavior, contract, or verification target. File paths are locator context — the task SHALL still describe what is observably true when complete.
- Line-number-coupled instructions: design or task content that points to "line 42" / "the function on lines 80-95" as the only way to identify the work. Source line numbers drift; name the function, command, struct, or behavior instead.
- Vague acceptance criteria: success conditions like "works correctly", "behaves as expected", "handles edge cases" without naming the observable behavior or the verification target (test name, CLI invocation, analyzer rule, manual assertion).
- Missing scope boundaries on non-trivial work: design lacking explicit "in scope" / "out of scope" lines for any change that touches more than one subsystem or introduces new behavior. Trivial artifact-only edits MAY skip this; runtime, build, or tooling effects MUST NOT.
Fix every failure inline using the existing context and the new plan/conversation source before running the CLI analyzer. Update incomplete design and task content so behavior contracts, verification criteria, and scope boundaries stay current with the new context. Preserve completed tasks unchanged.
Rationalization Table
| What You're Thinking | What You Should Do | | ---------------------------------------------------------------- | ----------------------------------------------------------------------------- | | "The existing artifacts are close enough, just adjust the tasks" | Read the new context carefully. "Close enough" means you're missing something | | "The proposal doesn't need updating, the change is the same" | If new context exists, the proposal likely needs updates. At minimum, check | | "I can merge these tasks, they're basically the same" | Keep tasks granular. Merged tasks are harder to track | | "The completed tasks still apply, no need to review" | Verify they're still relevant to updated scope. Don't blindly keep stale work | | "This spec change is minor, skip the scenario update" | If the requirement changed, the scenario must change | | "The conversation didn't discuss this artifact, so skip it" | Absence of discussion doesn't mean absence of impact. Check |
-
Analyze-Fix Loop (max 2 iterations)
speclink analyze <name> --json- Filter findings to Critical and Warning only (ignore Suggestion)
- If no Critical/Warning findings → show "Artifacts look consistent ✓" and proceed
- If Critical/Warning findings exist:
a. Show: "Found N issue(s), fixing... (attempt M/2)"
b. Fix each finding in the affected artifact
c. Re-run
speclink analyze <name> --jsond. Repeat up to 2 total iterations - After 2 attempts, if findings remain:
- Show remaining findings as a summary
- Proceed normally (do NOT block)
-
Validation
speclink validate "<name>"If validation fails, fix errors and re-validate.
-
Seal the reflection (discussion-sourced ingests only)
If this ingest folded a linked discussion's conclusion into the change, mark the reflection now that the content has landed:
speclink discuss seal <slug> <change>sealflips the discussion to promoted (已轉出) and is idempotent — run it once per linkedfrom_discussionslug (fromfromDiscussionsinspeclink show <change> --json). This is what keeps "已轉出" honest: the discussion is marked reflected only after ingest actually carried its content in, never at link time.sealalso clears that slug from the change'srestaleFromflag, so a re-ingest (triggered by a re-concluded discussion) closes the loop and the "待重新反映" marker disappears. Skip this step when no discussion fed the change. -
Summary and next steps
Show:
- Source used: plan file (
<path>) or conversation context - Change name and location
- Artifacts created/updated
- Validation result
Use AskUserQuestion tool to confirm the workflow is complete. This ensures the workflow stops even when auto-accept is enabled. Provide exactly these options:
- First option (will be auto-selected): "Done" — End the ingest workflow. Inform the user they can run
/speclink-apply <change-name>when ready. - Second option: "Apply" — Invoke
/speclink-apply <change-name>to start implementation.
If AskUserQuestion tool is not available, display the summary and inform the user to run /speclink-apply <change-name> when ready. Then STOP — do not continue.
After the user responds, if they chose "Done", the workflow is OVER. If they chose "Apply", invoke /speclink-apply <change-name> to begin implementation.
Guardrails
- NEVER modify the original plan file in
~/.claude/plans/ - NEVER write application code — this skill only creates/updates Speclink artifacts
- NEVER create new changes — ingest only updates existing changes. If no active change exists, direct user to
/speclink-propose - When updating existing changes, preserve all completed tasks (
[x]) — never revert progress - If the source content is too brief to fill all artifact sections, use the AskUserQuestion tool to get more details rather than inventing content
- If
speclinkCLI is not available, report the error and stop - Verify each artifact file exists after writing before proceeding to next
- NEVER skip the artifact workflow to write code directly
- If AskUserQuestion tool is not available, ask the same questions as plain text and wait for the user's response
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/update-speclink-change-from-context-msmr5ggq/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/update-speclink-change-from-context-msmr5ggq' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/update-speclink-change-from-context-msmr5ggq/download' --output '.skill-downloads/update-speclink-change-from-context-msmr5ggq/SKILL.md.part' && mv '.skill-downloads/update-speclink-change-from-context-msmr5ggq/SKILL.md.part' '.skill-downloads/update-speclink-change-from-context-msmr5ggq/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Environnement déclaré par l’auteur : Requires speclink CLI.
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/update-speclink-change-from-context-msmr5ggq/SKILL.md' && test -s '.skill-downloads/update-speclink-change-from-context-msmr5ggq/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/speclink-ingest' && cp -R '.skill-downloads/update-speclink-change-from-context-msmr5ggq' '.claude/skills/speclink-ingest'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/update-speclink-change-from-context-msmr5ggq'openskills read 'update-speclink-change-from-context-msmr5ggq'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/update-speclink-change-from-context-msmr5ggq/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Bonnes pratiques React Hook Form
Developpement
Maîtrisez React Hook Form : évitez les anti-patterns, gérez les abonnements, et traitez correctement reset, dirty state et entrées contrôlées.
Migration Emotion vers Mantine
Developpement
Migrer les styled-components Emotion vers des composants Mantine avec style props et modules CSS. Pour convertir .styled.tsx ou supprimer les imports @emotion.
Détecteur de dérive de périmètre
Developpement
Analyse les diffs git par rapport à une intention pour détecter la dérive de périmètre, fichiers non liés et PR trop larges, puis suggère de garder, diviser ou justifier.