Rédaction technique du projet

VérifiéSûr

Guide l'écriture technique pour respecter la voix et le style établis du projet. Utilisez-le lors de la création ou de la modification de README, ADR, commentaires Swift ou de la relecture de documentation pour assurer la cohérence. Impose un ton pragmatique, direct et de développeur à développeur, en évitant les tics d'IA et les formulations hésitantes.

Spar Skills Guide Bot
DocumentationIntermédiaire
02/06/2026
Claude CodeCursorWindsurfCopilotCodex
#technical-writing#voice-guide#project-documentation#swift-documentation

Recommandé pour

Synthèse automatique

Ce skill définit et applique la voix, le style et la structure d'écriture technique d'un projet, notamment pour les README, ADR et commentaires de code.

Points forts

  • Crée une documentation cohérente avec la voix du projet
  • Fournit des structures de documents prêtes à l'emploi
  • Évite les expressions artificielles communes aux IA
  • Applicable à plusieurs formats de documentation

Limites

  • Nécessite une phase d'adaptation pour saisir la voix du projet
  • Peut être trop prescriptif pour certains projets
  • Ne couvre pas tous les types de documentation technique
Quand l'utiliser

Lorsque vous rédigez ou éditez des READMEs, ADRs, commentaires de code Swift ou toute documentation technique nécessitant une voix cohérente.

Quand l'éviter

Pour des documents très informels ou des communications internes rapides où la voix n'est pas critique.

Analyse de sécurité

Sûr
Score qualité95/100

The skill is a style guide for technical writing and contains no executable code, dangerous commands, or external data exfiltration instructions. It poses no security risk.

Aucun point d'attention détecté

Comment cette analyse est faite

Exemples

Write a README for a new package
Write a README for a new Swift package called 'NetworkingKit' that provides HTTP networking functionality. Use our project's technical writing voice and follow the README structure defined in the project documentation.
Review an ADR for voice consistency
Review the following Architecture Decision Record and edit it to match our project's technical writing voice. Ensure it follows the ADR template, uses present tense, avoids hedging words, and includes at least one 'Bad' consequence.
Write Swift doc comments for a method
Write Swift doc comments for this method following the project's code documentation style. The first line should be a complete sentence describing the purpose, and include parameters and return value documentation.

name: writing-project-technical-writing description: Writes technical prose (READMEs, ADRs, code comments) in the project's established human voice. Use when creating or editing .md files, writing Swift doc comments, authoring ADRs, or reviewing technical writing for voice consistency.

Writing Project Technical Writing

This skill defines the voice, style, and structure for all technical writing in this project. The existing documentation is the gold standard — preserve and extend it.

Voice

Tone

  • Pragmatic and honest — Acknowledge trade-offs, constraints, and downsides openly
  • Direct and declarative — Use active voice and imperative mood for instructions
  • Confident without arrogance — State positions clearly without hedging or dismissing alternatives
  • Developer-to-developer — Speak as a peer, assume competence

Pronoun Usage

Use "we" for the team voice:

<!-- Correct -->
We use Homebrew to install dependencies.
We prefer value types for models.

<!-- Incorrect -->
You should use Homebrew to install dependencies.
Users must prefer value types for models.

Tense

Use present tense to describe current state:

<!-- Correct -->
This package defines the data layer.
The goal is to keep call sites stable.

<!-- Incorrect -->
This package will define the data layer.
The goal would be to keep call sites stable.

Instructions

Use imperative mood for actionable steps:

<!-- Correct -->
Run this command to install dependencies.
Add the secrets to 1Password.

<!-- Incorrect -->
You can run this command to install dependencies.
You should add the secrets to 1Password.

Anti-Patterns

Never use these patterns — they sound like AI-generated content:

| Pattern | Example | Why It's Wrong | |---------|---------|----------------| | Enthusiasm markers | "This is great for debugging!" | Unprofessional, sounds like marketing | | Filler words | "This basically reduces complexity" | Adds no information, hedges | | AI-isms | "Let me explain...", "Here's how to...", "Sure!" | Sounds like chatbot output | | Hedging | "This might help", "could potentially" | Lacks confidence | | Over-qualification | "It should be noted that..." | Verbose, indirect | | Exclamation points | "Install the dependencies!" | Overly casual in technical prose |

Specific Words to Avoid

  • "simply", "just", "basically", "essentially" (as filler)
  • "Let me...", "I'll...", "Here's...", "Sure!", "Certainly!", "Great!", "Awesome!"
  • "might", "could potentially", "may or may not"
  • "It should be noted that...", "It is important to note that..."

Document Structures

READMEs

# Package Name

One-line summary of what this package does.

## About

Explain purpose, context, and when to use this package.

### Capabilities

What this package enables (bullet list).

### Non-Goals

What this package intentionally does not do.

## Getting Started

Practical usage instructions with code examples.

### Design

Core patterns, concepts, and architectural decisions.

## Architecture

Detailed explanation of structure and concepts.

## Trade-Offs and Constraints

Honest discussion of limitations and design decisions.

ADRs (Architecture Decision Records)

Location: Documents/Decisions/NNNN Title.md

# Title

## Context and Problem Statement

Describe the situation and frame the problem as a question:
"How can we ensure that X while also Y?"

## Considered Options

- Option A description
- Option B description
- Option C description

## Decision Outcome

Chosen option: "Option B", because [rationale connecting back to the problem].

### Consequences

- Good, because [benefit].
- Good, because [another benefit].
- Bad, because [downside or trade-off].

The "Consequences" section must include at least one "Bad" item. Omitting downsides is dishonest.

Code Documentation (Swift)

First line is a complete sentence describing purpose:

/// A single-result operation that produces a response from the GraphQL service.
public protocol CoastGraphQLRequest<Model>: Request { }

Multi-paragraph for complex concepts:

/// A pattern for managing hierarchical relationships among coordinators.
///
/// By adopting `Coordinating`, you can form intricate structures of nested objects
/// that manage their own child coordinators. This pattern facilitates clean separation
/// of responsibilities.
public protocol Coordinating: AnyObject { }

Use callouts for important notes:

/// - Note: This has a `Sendable` requirement because of constraints on `AnyAsyncSequence`.
/// - Important: "Subscription" refers to `Clients/Subscription`, not GraphQL subscriptions.
/// - Attention: Modifying this property outside the framework is a programming error.

Document parameters and returns for public APIs:

/// Create a new request.
///
/// - Parameter fileName: The name of the file to create.
/// - Parameter mimeType: The MIME type of the file.
/// - Returns: A configured request ready for execution.
/// - Throws: `ValidationError` if the MIME type is unsupported.

Formatting

Code Blocks

Always include language hints:

```swift
let client = CoastGraphQLClient()
```

```sh
make build/app
```

Inline Code

Use backticks for:

  • File paths: Packages/Common/README.md
  • Commands: make build/app
  • Types and symbols: CoastGraphQLRequest, execute(_:)
  • Values: true, nil, "production"

Emphasis

Use bold for key terms and warnings, not ALL CAPS:

<!-- Correct -->
**Use this package when** you need ergonomic data operations.

<!-- Incorrect -->
USE THIS PACKAGE WHEN you need ergonomic data operations.

Asides

Use em-dashes for mid-sentence asides:

<!-- Correct -->
The model layer — which sits above Apollo — keeps call sites stable.

<!-- Incorrect -->
The model layer (which sits above Apollo) keeps call sites stable.

Callouts

For GitHub-rendered markdown, use:

> [!NOTE]
> There are no requirements for running on Simulator.

> [!WARNING]
> This will delete all local data.

Tables

Use tables for structured data like variables, options, or comparisons:

| Variable | Required | Description |
|----------|:--------:|-------------|
| PACKAGE  | Yes      | Name of the package to build |
| CONFIG   | No       | Build configuration. Defaults to `Debug`. |

Rationale

Always explain "why" after decisions:

<!-- Correct -->
Chosen option: "Accept automatic behavior", because iOS enforces APNS
environment selection regardless of entitlements configuration.

<!-- Incorrect -->
Chosen option: "Accept automatic behavior".

The word "because" should appear after every decision statement.

Examples

Use real code from the codebase, not contrived examples. If you must create an example, make it realistic and consistent with existing patterns.

<!-- Correct: Real code -->
let response = try await client.execute(CreateMediaRequest(fileName: "a.jpg", mimeType: "image/jpeg"))

<!-- Incorrect: Contrived -->
let response = try await client.execute(MyRequest(foo: "bar"))

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 annexes

Ce 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.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/project-technical-writing-mm78nohs/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/project-technical-writing-mm78nohs' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/project-technical-writing-mm78nohs/download' --output '.skill-downloads/project-technical-writing-mm78nohs/SKILL.md.part' && mv '.skill-downloads/project-technical-writing-mm78nohs/SKILL.md.part' '.skill-downloads/project-technical-writing-mm78nohs/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.

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/project-technical-writing-mm78nohs/SKILL.md' && test -s '.skill-downloads/project-technical-writing-mm78nohs/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/writing-project-technical-writing' && cp -R '.skill-downloads/project-technical-writing-mm78nohs' '.claude/skills/writing-project-technical-writing'

Cursor
test -f '.skill-downloads/project-technical-writing-mm78nohs/SKILL.md' && test -s '.skill-downloads/project-technical-writing-mm78nohs/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/writing-project-technical-writing' && cp -R '.skill-downloads/project-technical-writing-mm78nohs' '.cursor/skills/writing-project-technical-writing'

Codex
test -f '.skill-downloads/project-technical-writing-mm78nohs/SKILL.md' && test -s '.skill-downloads/project-technical-writing-mm78nohs/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/writing-project-technical-writing' && cp -R '.skill-downloads/project-technical-writing-mm78nohs' '.agents/skills/writing-project-technical-writing'

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’OpenSkills
openskills install './.skill-downloads/project-technical-writing-mm78nohs'

openskills read 'project-technical-writing-mm78nohs'

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 sync

Mode 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/project-technical-writing-mm78nohs/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.

Skills similaires