xiaohongshu
xiaohongshu
managing-frontend-knowledge
フロントエンド技術(CSS、JavaScript、HTML、パフォーマンス、アクセシビリティ)のナレッジベース管理。Web開発の実装タスクやコーディング作業時に自発的にナレッジベースを参照し、ベストプラクティスを適用することで作業の精度と速度を向上させる。URLや記事からの技術情報の要約・蓄積、質問への回答も行う。モダンCSS(Grid、Flexbox、@scope、View Transitions)、JavaScript パターン、Core Web Vitals、WCAG、ブラウザ互換性などに対応。
Full skill instructions
フロントエンド技術のナレッジベースを管理するスキル。3つの主要機能を提供:
トリガー: ユーザーからの実装依頼、コード作成タスク、機能追加など
URLが渡された場合は WebFetch で内容を取得。
人間が直接参照できるデータ集として、以下を意識:
以下のフォーマットで要約:
## [テクニック名]
> 出典: [URL]
> 執筆日: [YYYY-MM-DD](記事の公開日・更新日。不明な場合は「不明」)
> 追加日: [YYYY-MM-DD]
[1〜3文で概要を説明]
### コード例
\```css
/* または js/html */
[実用的なコード例]
\```
### ユースケース
- [具体的な使用場面1]
- [具体的な使用場面2]
### 注意点
- [ブラウザサポート、制限事項など]
---
以下のカテゴリから最適なものを選択(新しい階層構造):
| カテゴリ | ファイルパス | 対象 | キーワード |
|---|---|---|---|
| CSS - レイアウト | knowledge/css/layout/ | Grid, Flexbox, Container Queries, full-bleed | レイアウト, 幅, 高さ, 中央寄せ, 全幅 |
| CSS - アニメーション | knowledge/css/animation/ | Transitions, View Transitions, Scroll-driven | 動き, アニメーション, 遷移, トランジション |
| CSS - ビジュアル | knowledge/css/visual/ | filter, clip-path, mask, shape | フィルター, マスク, 図形, 視覚効果 |
| CSS - タイポグラフィ | knowledge/css/typography/ | text-box, フォント, paint-order | 文字, フォント, テキスト |
| CSS - セレクタ | knowledge/css/selectors/ | @scope, :has, :is, :where | スコープ, セレクタ, 擬似クラス |
| CSS - 値 | knowledge/css/values/ | clamp, viewport units, currentColor | 値, 単位, ビューポート, カスタムプロパティ |
| CSS - コンポーネント | knowledge/css/components/ | Popover, Anchor Positioning, field-sizing | UI, コンポーネント, ポップオーバー |
| CSS - テーマ | knowledge/css/theming/ | light-dark, color-scheme | テーマ, ダークモード, 配色 |
| HTML | knowledge/html/ | モダンHTML, セマンティック, dialog, details | HTML, マークアップ, 要素 |
| JavaScript - パターン | knowledge/javascript/patterns/ | DOM, イベント, 非同期, Utilities | JS, DOM, イベント, パターン |
| JavaScript - アニメーション | knowledge/javascript/animation/ | requestAnimationFrame, 補間 | JS アニメーション, 数学的補間 |
| パフォーマンス | knowledge/cross-cutting/performance/ | 最適化, Core Web Vitals, lazy-load | 速度, 最適化, LCP, CLS |
| アクセシビリティ | knowledge/cross-cutting/accessibility/ | WCAG, a11y, リンク | a11y, アクセシビリティ, WCAG |
| ブラウザ互換性 | knowledge/cross-cutting/browser-compat/ | ブラウザバグ, 回避策, workarounds | バグ, 回避, Safari, iOS |
| Apple Style Guide | knowledge/apple-style-guide/ | Apple製品のライティング規約、UI用語、スタイルガイド | Apple, ライティング, UI用語, 製品名, スタイル規約, 表記 |
| Human Interface Guidelines | knowledge/human-interface-guidelines/ | Appleデザイン原則、iOS/macOS UI設計 | HIG, Apple design, iOS, macOS, SwiftUI, UIKit, アプリデザイン |
| Material Design 3 | knowledge/material-design-3/ | Googleデザインシステム、Material You、デザイン哲学 | Material Design, Material You, Google, デザインシステム, Dynamic Color |
重要: ナレッジ追加前に必ず既存ナレッジとの重複をチェックする。
以下のコマンドで該当トピックの既存ファイルを検索:
# キーワードで検索(例: Container Query)
find knowledge -type f -name "*.md" | xargs grep -l "container.*query\|@container"
# ファイル名で検索
find knowledge -type f -name "*container*"
| 状況 | 対応 |
|---|---|
| 完全に新しい情報 | 新規ファイル作成 |
| 既存ファイルに追記可能 | 既存ファイルの末尾に追加 |
| 既存情報の更新 | 既存セクションを Edit ツールで更新 |
| 複数記事の統合 | 情報を統合して1つのファイルを作成/更新 |
| 古い情報の置き換え | 古いセクションを削除し、新情報を追加 |
| 明らかに古く有用でない | ナレッジ化しない |
以下の場合は「古く有用でない」と判断し、ナレッジ化しない:
ただし、以下は例外的に保存:
分割すべき場合:
統合すべき場合:
~/.claude/skills/managing-frontend-knowledge/knowledge/[カテゴリ]/[ファイル名].md を Read---
title: タイトル
category: css/layout (カテゴリパス)
tags: [タグ1, タグ2, タグ3]
browser_support: ブラウザ対応状況
created: YYYY-MM-DD
updated: YYYY-MM-DD
---
追加完了後、以下を報告:
1つの記事に複数のテクニックがある場合:
記事の内容が複数のカテゴリに関連する場合は、無理に1つのファイルに押し込めない。
| 状況 | 対応 |
|---|---|
| 主題が1つで、他カテゴリは補足 | 主カテゴリに追加、他は参照リンクのみ |
| 独立した複数のトピックを含む | 各カテゴリに分割して追加 |
| カテゴリ間で密接に関連 | 各カテゴリに追加し、相互参照を記載 |
例: 「アクセシビリティを考慮したアニメーション実装」という記事
accessibility-link-underline.md:
- prefers-reduced-motion の必要性と判定方法
- 関連: css-animation.md の「モーション軽減対応」
css-animation.md:
- モーション軽減対応のCSS実装パターン
- 関連: accessibility-link-underline.md の「prefers-reduced-motion」
✅ ナレッジを追加しました(2カテゴリに分割)
📁 accessibility-link-underline.md
📝 prefers-reduced-motion の考慮
📁 css-animation.md
📝 モーション軽減対応パターン
🔗 相互参照を設定済み
追加前に既存ナレッジとの類似性を確認:
🔄 類似ナレッジを検出・統合しました
既存: 「CSS Grid の基本」(執筆: 2023-06)
新規: 「Grid Layout 実践ガイド」(執筆: 2024-08)
→ 統合: 「CSS Grid レイアウト完全ガイド」として強化
- 基本構文(既存)+ 実践パターン(新規)を統合
- ブラウザサポート情報を最新化
ユーザーに確認するか、最も近いカテゴリに追加。
新カテゴリが必要な場合は SKILL.md のカテゴリ一覧も更新。
✅ ナレッジを追加しました
📁 カテゴリ: css-layout.md
📝 テクニック: Container Queries の実践的パターン
🔗 出典: https://example.com/container-queries
### 追加内容プレビュー:
> コンテナクエリを使用してコンポーネント単位の
> レスポンシブデザインを実現する方法...
「ナレッジを整理して」「重複チェックして」等で発動。
統合プロセス:
統合の判断基準:
統合後のフォーマット:
## [テクニック名]
> 出典: [URL1], [URL2](複数の場合はカンマ区切り)
> 執筆日: [最新の執筆日](統合元: [日付1], [日付2])
> 追加日: [最初の追加日] / 統合日: [YYYY-MM-DD]
[統合された包括的な説明]
📊 css-layout.md の分析結果
エントリ数: 15件
最終更新: 2025-01-15
### 検出された課題
1. 🔄 重複の可能性
- 「Flexbox gap」と「Flexbox の gap プロパティ」が類似
2. ⚠️ 古い情報
- 「IE対応のGrid fallback」(執筆: 2021-03)
→ IE サポート終了済み、削除を推奨
3. 📝 フォーマット不統一
- 3件のエントリに「ユースケース」セクションがない
### 推奨アクション
- [ ] 重複を統合する
- [ ] 古い情報を削除する
- [ ] フォーマットを統一する
実行しますか?
以下のタイミングで整理を実行:
Web開発の実装タスクやコーディング作業を行う際、以下の流れで自発的にナレッジベースを参照する:
タスク内容からキーワードを抽出
該当カテゴリを特定 (上記カテゴリ一覧を参照)
ナレッジファイルを Read
~/.claude/skills/managing-frontend-knowledge/knowledge/ 内の該当ファイルベストプラクティスを適用して実装
効果: 作業の精度向上、実装速度向上、最新のベストプラクティス適用
~/.claude/skills/managing-frontend-knowledge/knowledge/ 内の該当ファイルを Readknowledge/
├── INDEX.md # 全体インデックス
├── css/
│ ├── layout/ # Grid, Flexbox, 配置
│ ├── animation/ # Transitions, アニメーション
│ ├── visual/ # filter, mask, shape
│ ├── typography/ # フォント, テキスト
│ ├── selectors/ # @scope, :has, 擬似クラス
│ ├── values/ # clamp, 単位, カスタムプロパティ
│ ├── components/ # Popover, Anchor Positioning
│ └── theming/ # light-dark, テーマ
├── javascript/
│ ├── patterns/ # DOM, イベント, パターン
│ └── animation/ # requestAnimationFrame, 補間
├── html/ # モダンHTML, セマンティック
├── cross-cutting/
│ ├── performance/ # 最適化, Core Web Vitals
│ ├── accessibility/ # WCAG, a11y
│ └── browser-compat/ # ブラウザバグ, 回避策
├── apple-style-guide/ # Appleライティング規約
├── human-interface-guidelines/ # Apple HIG、デザイン原則
└── material-design-3/ # Material Design 3、デザイン哲学
## [質問に対する回答]
[説明]
### コード例
\```css
/* または js/html */
\```
### ユースケース
- [具体的な使用場面]
### 参考
- [出典URL(あれば)]
関連する複数のファイルを Read して総合的に回答する。
例: 「スクロールアニメーション」→ css-animation.md + performance.md
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience