Synthèse automatique
Ce skill décrit le workflow contributeur propre au dépôt de la bibliothèque de rendu 2D ink : création de branches, validation locale, ouverture de PR et conventions CI.
Points forts
- Nomme explicitement les préfixes de branches (feat/, fix/, refactor/, docs/, chore/) et les types de commits conventionnels
- Fournit les commandes exactes de validation locale (clang-format --dry-run, build CMake avec tests, ctest) alignées sur la CI
- Inclut un tableau de référence des déclencheurs CI, nightly et release, ainsi qu'un modèle de corps de PR avec plan de test
- Liste les pièges concrets du dépôt : oubli de ink.hpp, de CMakeLists.txt ou du README
Limites
- Spécifique au dépôt ink : les commandes et conventions ne se transposent pas à un autre projet
- Suppose un environnement outillé (gh CLI, CMake, clang-format, Google Test) et ne couvre pas leur installation
- La politique de release (gates, hotfix) est renvoyée au skill ink-release et n'est pas détaillée ici
À utiliser dès qu'on démarre une fonctionnalité, un correctif ou une refactorisation dans ink, ou qu'on prépare une PR vers master.
À éviter pour des questions de conception ou de style C++ indépendantes du workflow du dépôt, ou pour piloter une release stable.
Analyse de sécurité
SûrThe skill provides standard repository contribution instructions using git, cmake, ctest, clang-format, and gh. Commands are non-destructive and intended for the developer's own workflow; no exfiltration, obfuscation, or unsafe shell patterns are present.
Aucun point d'attention détecté
Comment cette analyse est faiteExemples
Create a feat/ branch off latest master for adding a new gradient fill API to ink, implement it with tests in tests/, run the clang-format check and ctest locally, then open a PR to master with the standard summary and test plan.I've added a new public header include/ink/blend.hpp — what else do I need to update in ink.hpp and CMakeLists.txt, and which local commands should I run before pushing?Walk me through the ink branch and commit conventions and the CI checks my PR must pass so the code is ready for the release readiness gates.name: ink-dev description: Use when contributing code to ink and needing repository-specific branching, local validation, PR, and CI conventions. allowed-tools: Bash Read Edit Write Grep Glob
ink-dev
Overview
Use this skill to follow the standard contributor workflow for the ink 2D rendering library.
Related: Use ink-release for nightly/stable release policy, gates, and hotfix handling.
This repository uses a PR-first flow even for solo development: work on branch, open PR, merge to master.
When to Use
Use when:
- starting a feature, bugfix, or refactor in this repo
- preparing a pull request to
master - checking what local commands to run before push
- preparing code for release readiness checks
Do not use when you need language-level coding patterns unrelated to repository workflow.
Branch Strategy
- Treat
masteras protected; use PRs instead of direct pushes. - Feature branch:
feat/<short-description> - Bugfix branch:
fix/<short-description> - Refactor branch:
refactor/<short-description> - Docs branch:
docs/<short-description> - Chore/CI branch:
chore/<short-description> - Do not commit feature work directly on
master.
Development Cycle
-
Create branch from latest
master:git switch master git pull git switch -c feat/<name> -
Commit with conventional prefixes:
<type>: <concise description>- Types:
feat,fix,refactor,test,docs,chore,ci
-
Update
README.mdwhen API/behavior/build/release workflow changed. -
Run local validation before push:
# Format check (matches CI) find include src -name '*.hpp' -o -name '*.cpp' | xargs clang-format --dry-run -Werror # Build + test cmake -B build -DINK_BUILD_TESTS=ON -DINK_ENABLE_GL=OFF cmake --build build -j$(nproc) ctest --test-dir build --output-on-failure -
Push branch and open PR to
master:git push -u origin feat/<name> gh pr create --base master --title "<type>: <description>" --body "$(cat <<'EOF' ## Summary - <what changed and why> ## Test plan - [ ] Local `ctest` passes - [ ] Format check passes EOF )" -
Wait for CI checks before merge.
-
Merge via GitHub (squash merge is the default convention).
Quick Reference
| Area | Current convention |
|------|--------------------|
| Target branch | master |
| CI trigger | PR to master, push to master |
| CI checks | Format, Build & Test (gcc/clang x Debug/Release), clang-tidy, Sanitizers |
| Nightly trigger | schedule/manual in nightly.yml on default branch |
| Stable release trigger | push tag v* |
| Release outputs | CPU tarball, GL tarball, source tarball, GitHub Release notes |
Code Conventions
- C++17 with strict warnings (
-Wall -Wextra -Wpedantic). - Public headers live in
include/ink/; implementation insrc/. - GPU renderer sources live in
src/gpu/<api>/. - New features include tests in
tests/(typicallytest_<component>.cpp). - Tests use Google Test (
TEST,EXPECT_EQ, and related assertions). - When adding/removing a public header, keep
include/ink/ink.hpp(umbrella header) in sync. - When adding/removing source files, update
CMakeLists.txtaccordingly.
Common Mistakes
- Skipping local
ctestand relying only on CI feedback. - Skipping
clang-formatcheck locally — CI will reject unformatted code. - Forgetting README updates when public behavior or usage changes.
- Using vague commit titles instead of typed prefixes.
- Adding a public header but forgetting to include it in
ink.hppor the CMake install list. - Pushing release tags before the changelog PR is merged and release preflight passes.
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/ink-dev-workflow-mryiqgzp/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/ink-dev-workflow-mryiqgzp' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/ink-dev-workflow-mryiqgzp/download' --output '.skill-downloads/ink-dev-workflow-mryiqgzp/SKILL.md.part' && mv '.skill-downloads/ink-dev-workflow-mryiqgzp/SKILL.md.part' '.skill-downloads/ink-dev-workflow-mryiqgzp/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.
Outils déclarés par l’auteur (à vérifier dans votre agent) : Bash Read Edit Write Grep Glob
Extrait original : Quick Reference
| Area | Current convention |
|---|---|
| Target branch | master |
| CI trigger | PR to master, push to master |
| CI checks | Format, Build & Test (gcc/clang x Debug/Release), clang-tidy, Sanitizers |
| Nightly trigger | schedule/manual in nightly.yml on default branch |
| Stable release trigger | push tag v* |
| Release outputs | CPU tarball, GL tarball, source tarball, GitHub Release notes |
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/ink-dev-workflow-mryiqgzp/SKILL.md' && test -s '.skill-downloads/ink-dev-workflow-mryiqgzp/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/ink-dev' && cp -R '.skill-downloads/ink-dev-workflow-mryiqgzp' '.claude/skills/ink-dev'Cursor
test -f '.skill-downloads/ink-dev-workflow-mryiqgzp/SKILL.md' && test -s '.skill-downloads/ink-dev-workflow-mryiqgzp/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/ink-dev' && cp -R '.skill-downloads/ink-dev-workflow-mryiqgzp' '.cursor/skills/ink-dev'Codex
test -f '.skill-downloads/ink-dev-workflow-mryiqgzp/SKILL.md' && test -s '.skill-downloads/ink-dev-workflow-mryiqgzp/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/ink-dev' && cp -R '.skill-downloads/ink-dev-workflow-mryiqgzp' '.agents/skills/ink-dev'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/ink-dev-workflow-mryiqgzp'openskills read 'ink-dev-workflow-mryiqgzp'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/ink-dev-workflow-mryiqgzp/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.