Awesome-omni-skill sylvadoc
Les préférences de Sylvadoc pour la confection de projets web en Nuxt/Vue/Typescript.
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/development/sylvadoc" ~/.claude/skills/diegosouzapw-awesome-omni-skill-sylvadoc && rm -rf "$T"
manifest:
skills/development/sylvadoc/SKILL.mdsource content
Les préférences de Sylvadoc
Ces skills documentent les préférences de Sylvadoc pour la confection de projets web modernes en JavaScript/TypeScript, notamment avec Vue, Nuxt, Vite, et d'autres outils populaires.
Quick Summary
| Category | Preference |
|---|---|
| Package Manager | pnpm |
| Language | TypeScript (strict mode) |
| Module System | ESM () |
| Linting & Formatting | ESLint & Prettier |
| Testing | Vitest |
| Documentation | VitePress (in ) |
Stack principal
Package Manager (pnpm)
Utiliser pnpm comme package manager.
{ "packageManager": "pnpm@latest" }
TypeScript (Strict Mode)
Toujours utiliser TypeScript avec le mode strict activé.
{ "compilerOptions": { "target": "ESNext", "module": "ESNext", "moduleResolution": "bundler", "strict": true, "esModuleInterop": true, "skipLibCheck": true, "resolveJsonModule": true, "isolatedModules": true, "noEmit": true } }
Unit Testing (Vitest)
Utiliser Vitest pour les tests unitaires.
{ "scripts": { "test": "vitest" } }
Conventions:
- Place test files next to source files:
→foo.ts
(same directory)foo.test.ts - High-level tests go in
directory in each packagetests/ - Use
anddescribe
API (notit
)test - Use
API for assertionsexpect - Use
only for TypeScript null assertionsassert - Use
for complex output assertionstoMatchSnapshot - Use
with explicit file path and extension for language-specific output (exclude those files from linting)toMatchFileSnapshot
References
Configurations et fichiers communs
| Topic | Description | Reference |
|---|---|---|
| eslint | ESLint flat config for formatting and linting | sylvadoc-eslint-config |
| .gitignore | Preferred .gitignore for JS/TS projects | gitignore |
| ------- | ------------- | ---------------------------------------------------------------- |
Développement Web
| Topic | Description | Reference |
|---|---|---|
| css development | Preferences for writing CSS with modern features | css-development |
| html development | Preferences for writing semantic and accessible HTML | html-development |
| app development | Preferences for Vue/Vite/Nuxt/UnoCSS web applications | app-development |
| ------- | ------------- | ----------- |