Build tools, CSS architecture, and Git workflows for clemencefouquet.fr WordPress theme. Covers linting, @layer CSS, and sync between Laragon/Git/VPS.
Sets up build tools, CSS architecture, and Git workflows for WordPress themes.
/plugin marketplace add theflysurfer/claude-skills-marketplace/plugin install theflysurfer-claude-skills-marketplace@theflysurfer/claude-skills-marketplaceThis skill is limited to using the following tools:
references/git-workflows.mdreferences/linter-configs.mdBuild tools, CSS architecture, and deployment workflows for the Clémence Fouquet WordPress theme.
| Section | Purpose |
|---|---|
| Build Tools | Linting setup |
| CSS Architecture | @layer and tokens |
| Git Workflows | Sync and deploy |
Resources: linter-configs.md | git-workflows.md
| Outil | Usage |
|---|---|
@wordpress/scripts | Build JS/CSS |
Stylelint | Lint CSS |
ESLint | Lint JS |
PHPCS | Lint PHP |
npm init -y
npm install --save-dev @wordpress/scripts stylelint stylelint-config-standard @wordpress/eslint-plugin
composer require --dev squizlabs/php_codesniffer wp-coding-standards/wpcs
npm run lint # Lint tout
npm run lint:css:fix # Fix CSS
npm run build # Production
Configs complètes: references/linter-configs.md
| Règle | Interdit | Correct |
|---|---|---|
| !important | color: red !important | Augmenter spécificité |
| ID selectors | #header | .l-header |
| Hardcoded values | #5b2e7f | var(--wp--preset--color--violet-500) |
| Deep nesting | .a .b .c .d | .l-a__d (max 2 niveaux) |
@layer reset, base, blocks, components, utilities;
@layer reset {
*, *::before, *::after { box-sizing: border-box; }
}
@layer components {
.l-header { backdrop-filter: blur(10px); }
}
| Layer | Contenu |
|---|---|
reset | Box-sizing, normalize |
base | Styles HTML elements |
blocks | Blocs Gutenberg custom |
components | .l-header, .c-card |
utilities | .u-hidden, .u-flex |
CSS hors @layer bat TOUJOURS CSS dans @layer. WordPress génère CSS sans @layer.
/* HORS @layer - pour battre WordPress */
body .alignfull,
html body .alignfull {
max-width: none;
width: 100vw;
}
/* DANS @layer - nos styles custom */
@layer components {
.l-header { /* ... */ }
}
// Priorité 20 pour charger après WordPress (défaut 10)
add_action('wp_enqueue_scripts', 'clemence_enqueue_assets', 20);
/* Couleurs */
var(--wp--preset--color--violet-500) /* #5b2e7f */
var(--wp--preset--color--orange-500) /* #f89420 */
/* Espacements */
var(--wp--preset--spacing--50) /* 24px */
var(--wp--preset--spacing--70) /* 48px */
/* Typo */
var(--wp--preset--font-family--fraunces)
var(--wp--preset--font-size--large)
grep -rn '!important' assets/css/ # Trouver !important
grep -oE '#[0-9a-fA-F]{3,6}' assets/css/*.css | wc -l # Compter couleurs hardcodées
Laragon → Git commit → GitHub push → VPS deploy
# 1. Sync et commit
robocopy "$LOCAL_THEME" "$PROJECT_THEME" /MIR /XD .git
git add . && git commit -m "feat(header): update styles"
git push origin main
# 2. Deploy
tar -czf /tmp/theme.tar.gz . && scp /tmp/theme.tar.gz srv759970:/tmp/
ssh srv759970 "docker cp /tmp/theme.tar.gz wordpress-clemence:/tmp/ && \
docker exec wordpress-clemence bash -c 'cd /var/www/html/wp-content/themes/clemence-theme && tar -xzf /tmp/theme.tar.gz'"
VPS Gutenberg → Backup → Git commit → Laragon sync
# 1. Backup obligatoire
ssh srv759970 "docker exec wordpress-clemence wp db export /tmp/backup.sql --allow-root"
# 2. Export thème
ssh srv759970 "docker exec wordpress-clemence tar -czf /tmp/theme.tar.gz -C /var/www/html/wp-content/themes clemence-theme"
scp srv759970:/tmp/theme.tar.gz ./backups/
# 3. Commit
git checkout -b content-sync/$(date +%Y%m%d)
git add . && git commit -m "sync: Import modifications Clémence"
Workflows détaillés: references/git-workflows.md
feat(header): réduire espacement logo-navigation
- Gap réduit de 2rem à 1rem
- Test mobile OK
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Types: feat, fix, refactor, style, sync
Scopes: header, footer, hero, css, deploy
.stylelintrc.json, etc.)Read - Lire configs existantesWrite - Créer configs lintersEdit - Modifier package.json, functions.phpBash - npm install, git commandsGrep - Rechercher !important, couleurs hardcodéesGlob - Trouver fichiers CSS/JSThis skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.