Communitygithub.com

curiositech/windags-skills

管理ダッシュボード、開発者ポータル、運用コンソールの拡張・修正を行います。新しい管理タブ、メトリクス、監視機能、内部ツールの追加時に使用します。ダッシュボード開発、分析、ユーザー管理、内部ツール作成で有効化されます。

windags-skills とは?

このスキルは、管理ダッシュボードと内部ツールの開発を支援します。新しい管理機能の追加、データ表示タブの作成、リアルタイム監視の実装など、Admin & Developer Suite の拡張パターンを提供します。主に、Curiositech プラットフォームの管理ダッシュボード、開発者ポータル(/dev)、運用コンソール(/ops)を対象としており、SWR による定期更新、WebSocket によるリアルタイム更新、サーバーサイドページネーションなどの実装戦略を提供します。また、データベースクエリのパフォーマンス低下、キャッシュの不整合、監査ログの欠如、HIPAA 違反、権限昇格といった障害モードを事前に特定し、各シナリオの診断方法と修正手順を詳述しています。実例として、本番環境のヘルスモニタリングタブの追加手順を、セキュリティ、レート制限、監査ログを含めて詳細に解説しており、エキスパートと初心者の違いも示しています。このスキルは、外部ユーザー向け機能、認証フロー、データベーススキーマ変更、メール/通知システム、API レート制限設定、HIPAA コンプライアンス設定、パフォーマンス最適化には使用しないでください。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/curiositech/windags-skills/tree/HEAD/skills/admin-dashboard

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Admin & Developer Suite 開発

このスキルは、確立されたパターンに従って、管理ダッシュボードを拡張し、内部ツールを構築するのに役立ちます。

決定ポイント

タブ追加 vs エンドポイント修正 vs 新規ツール作成のタイミング

管理機能の追加:
├─ ユーザーが読み取り専用のデータ表示を必要とする場合?
│  ├─ データが現在のAPIに存在する? → 既存のタブを修正
│  ├─ 新しいデータタイプが必要? → 新しいタブ + 新しいエンドポイントを追加
│  └─ 複雑な分析が必要? → 専用の分析タブを作成
│
├─ ユーザーがシステムデータを変更する必要がある場合?
│  ├─ 単純なCRUD操作? → 管理タブを追加
│  ├─ バルク操作が必要? → 運用コンソールタブを作成
│  └─ マルチステップのワークフロー? → ウィザードコンポーネントを構築
│
├─ 内部開発者ツール?
│  ├─ コードインスペクション/ドキュメント? → /dev ポータルに追加
│  ├─ システム監視? → /ops コンソールに追加
│  └─ ユーザーサポートツール? → 管理ダッシュボードに追加
│
└─ 外部ユーザー向け機能?
   → 停止: 代わりに frontend-development スキルを使用

タブコンテンツ実装戦略

タブ複雑性評価:
├─ 単純な統計表示(5メトリクス未満)?
│  → StatCard グリッドパターンを使用
│
├─ フィルタリング可能なデータテーブル?
│  ├─ 1000行未満? → クライアント側フィルタリング
│  └─ 1000行以上? → サーバー側ページネーション + 検索
│
├─ リアルタイム監視?
│  ├─ 30秒以上の更新間隔? → SWRと更新間隔を使用
│  └─ 5秒未満の更新間隔? → WebSocket接続を使用
│
└─ インタラクティブなコントロール?
   ├─ 単純なトグル/ボタン? → インラインアクション
   └─ 複雑なフォーム? → モーダルダイアログ + 確認フロー

障害モード

1. データベースクエリパフォーマンスの悪化スパイラル

症状: 管理ダッシュボードがタイムアウトする、または読み込みが遅い(5秒以上) 検出: /api/admin/* のレスポンス時間が3秒以上を監視 修正: データベースインデックスを追加、ページネーションを実装、集計統計をキャッシュ

-- 悪い例: フルテーブルスキャン
SELECT COUNT(*) FROM pageViews WHERE userId = ?

-- 良い例: インデックス付きタイムスタンプ範囲を使用
SELECT COUNT(*) FROM pageViews WHERE createdAt > NOW() - INTERVAL 24 HOUR

2. 古いキャッシュによる誤ったデータ表示

症状: 管理者が最近のアクティビティと一致しない古いメトリクスを確認する 検出: ユーザーが、既知のアクション後も統計が変わらないと報告 修正: データ変更時のキャッシュ無効化を実装、「最終更新」タイムスタンプを追加

// ミューテーションにキャッシュ破棄を追加
await updateUserData(userId);
await revalidateTag('admin-stats'); // キャッシュをクリア

3. 監査ログの欠落

症状: 管理者アクションが auditLog テーブルに記録されない 検出: 過去24時間の管理アクションの auditLog エントリを確認 修正: すべての管理エンドポイントに logAdminAction() 呼び出しを追加

// すべての管理エンドポイントで必須
await logAdminAction(admin.id, AuditAction.USER_DATA_VIEW, 'users', userId);

4. HIPAA違反によるデータ漏洩

症状: エラーメッセージ、ログ、または集計ビューでPHIが表示される 検出: エラーにユーザーのメール/電話/医療データが含まれている 修正: すべてのエラーレスポンスをサニタイズ、管理ビューでハッシュ化された識別子を使用

// 悪い例: ユーザーのメールアドレスを公開
{ error: "ユーザー [email protected] が見つかりません" }

// 良い例: 匿名識別子を使用
{ error: "ユーザーID hash_123abc が見つかりません" }

5. 管理者権限の昇格

症状: 一般ユーザーが管理エンドポイントにアクセスできる 検出: 非管理者ユーザーが403の代わりに管理データを受信する 修正: すべての管理エンドポイントの最初の行に requireAdmin() チェックを追加

export async function GET(request: Request) {
  const admin = await requireAdmin(); // 必ず最初に
  if (!admin) return Response.json({ error: 'Forbidden' }, { status: 403 });
  // ... ハンドラの残り
}

実例

本番環境ヘルスモニタリングタブの追加

シナリオ: レイテンシメトリクス、エラー率、サービスステータスを用いたリアルタイムAPIヘルスモニタリングを追加する。

1. 決定ポイントのナビゲーション:

  • ユーザーはリアルタイム監視が必要 → 30秒更新のSWRを使用
  • ユーザーデータではなくシステムデータ → 管理ダッシュボードに追加
  • 新しいデータタイプ(APIメトリクス) → 新しいタブ + エンドポイントを作成

2. 実装手順:

必要なパターンでエンドポイントを作成:

// src/app/api/admin/health/route.ts
export async function GET(request: Request) {
  const admin = await requireAdmin(); // セキュリティが最優先
  if (!admin) return Response.json({ error: 'Forbidden' }, { status: 403 });
  
  const rateLimitResult = await rateLimiter.check(admin.id); // レート制限
  if (!rateLimitResult.allowed) return Response.json({}, { status: 429 });
  
  await logAdminAction(admin.id, 'HEALTH_VIEW', 'metrics', null); // 監査
  
  const metrics = await getHealthMetrics(); // データ取得
  return Response.json(metrics);
}

タブコンポーネントを作成:

function ProductionHealthTab() {
  const { data: health, error } = useSWR('/api/admin/health', fetcher, {
    refreshInterval: 30000 // リアルタイム更新
  });
  
  return (
    <div className="space-y-6">
      <div className="grid grid-cols-4 gap-4">
        <StatCard label="API稼働率" value="99.9%" status="good" />
        <StatCard label="平均レイテンシ" value="45ms" trend="down" />
        <StatCard label="エラー率" value="0.1%" status="warning" />
        <StatCard label="アクティブサービス" value="12/12" status="good" />
      </div>
    </div>
  );
}

3. エキスパートと初心者の違い:

  • 初心者が見逃す点: 監査ログ、レート制限、HIPAA準拠のエラー処理
  • エキスパートが考慮する点: キャッシュ無効化戦略、パフォーマンス監視設定、適切なエラーバウンダリ

品質ゲート

  • 管理アクセス制御: requireAdmin() チェックが管理者ユーザーでパスし、一般ユーザーで失敗する
  • レート制限: レート制限を超えるとエンドポイントが429を返す(デフォルト60 req/min)
  • 監査ログ: 管理者アクションが正しいアクションタイプで auditLog テーブルに記録される
  • パフォーマンスベースライン: 現実的なデータ量でタブが2秒未満で読み込まれる
  • HIPAA準拠: エラーメッセージやデバッグ出力にPHIが公開されない
  • データ検証: 無効なリクエストは安全なメッセージとともに適切な400エラーを返す
  • キャッシュ動作: バックエンドの変更から30秒以内にデータが更新される
  • エラーバウンダリ: UIがAPIの障害をクラッシュせずに適切に処理する
  • モバイル対応: タブレットサイズ(768px以上)でタブレイアウトが機能する
  • リアルタイム更新: 10分以上、メモリリークなく自動更新が機能する

使用範囲外

このスキルを以下には使用しないでください:

  • 外部ユーザー向け機能 → 代わりに frontend-development を使用
  • 認証/ログインフロー → 代わりに auth-security を使用
  • データベーススキーマ変更 → 代わりに database-operations を使用
  • メール/通知システム → 代わりに communications を使用
  • APIレート制限の設定 → 代わりに backend-api を使用
  • HIPAAコンプライアンス設定 → 代わりに security-compliance を使用
  • パフォーマンス最適化 → 代わりに optimization を使用

以下の場合は他のスキルに委譲してください:

  • 公開ユーザー機能の追加 → frontend-development
  • ユーザー認証の変更 → auth-security
  • 外部利用のための新しいAPIエンドポイント作成 → backend-api
  • 監視インフラのセットアップ → devops-infrastructure

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

curiositech/windags-skills

Expert in 2000s-era music visualization (Milkdrop, AVS, Geiss) and modern WebGL implementations. Specializes in Butterchurn integration, Web Audio API AnalyserNode FFT data, GLSL shaders for audio-reactive visuals, and psychedelic generative art. Activate on "Milkdrop", "music visualization", "WebGL visualizer", "Butterchurn", "audio reactive", "FFT visualization", "spectrum analyzer". NOT for simple bar charts/waveforms (use basic canvas), video editing, or non-audio visuals.

curiositech/windags-skills

Expert legal research agent for finding and scraping expungement data state by state. Knows authoritative sources, URL patterns, Firecrawl configuration, and 2026 legal landscape.

curiositech/windags-skills

Expert in 3D computer vision labeling tools, workflows, and AI-assisted annotation for LiDAR, point clouds, and sensor fusion. Covers SAM4D/Point-SAM, human-in-the-loop architectures, and vertical-specific training strategies. Activate on '3D labeling', 'point cloud annotation', 'LiDAR labeling', 'SAM 3D', 'SAM4D', 'sensor fusion annotation', '3D bounding box', 'semantic segmentation point cloud'. NOT for 2D image labeling (use clip-aware-embeddings), general ML training (use ml-engineer), video annotation without 3D (use computer-vision-pipeline), or VLM prompt engineering (use prompt-engineer).

curiositech/windags-skills

Implement WCAG 2.2 AA/AAA compliance with automated testing, keyboard navigation, screen reader support, and focus management. Activate on: accessibility audit, WCAG compliance, keyboard navigation, screen reader, aria attributes, axe-core, focus trap. NOT for: design-level accessibility review (use design-accessibility-auditor), color contrast only (use css-in-js-architect).

curiositech/windags-skills

Time-blind friendly planning, executive function support, and daily structure for ADHD brains. Specializes in realistic time estimation, dopamine-aware task design, and building systems that actually work for neurodivergent minds.

curiositech/windags-skills

Designs digital experiences for ADHD brains using neuroscience research and UX principles. Expert in reducing cognitive load, time blindness solutions, dopamine-driven engagement, and compassionate design patterns. Activate on 'ADHD design', 'cognitive load', 'accessibility', 'neurodivergent UX', 'time blindness', 'dopamine-driven', 'executive function'. NOT for general accessibility (WCAG only), neurotypical UX design, or simple UI styling without ADHD context.

curiositech/windags-skills

>- Apply crisis decision-making research to agent routing, uncertainty triage, and coordination failure analysis in time-pressured systems. Use when diagnosing handoff failures, analytical paralysis, or expert judgment under incomplete information. NOT for routine coding, simple CRUD design, or static single-agent tasks with complete information.

curiositech/windags-skills

Conversation patterns and interaction protocols for multi-agent systems. Covers request/response, pub/sub, blackboard, delegation chains, debate, critique, consensus, fan-out/fan-in, supervisor-worker, and peer negotiation. Deep analysis of AutoGen conversation patterns, CrewAI delegation, LangGraph state passing, and FIPA-ACL performatives. Teaches how to design what agents say to each other and in what order. Activate on: "agent conversation", "agent protocol", "multi-agent debate", "agent delegation", "supervisor worker pattern", "agent voting", "consensus protocol", "fan-out fan-in", "agent negotiation", "blackboard pattern", "agent dialogue", "conversation topology", "agent handoff". NOT for: wire format or serialization (use agent-interchange-formats), orchestration infrastructure (use agentic-infrastructure-2026), single agent behavior (use agentic-patterns).

curiositech/windags-skills

Meta-agent for creating new custom agents, skills, and MCP integrations. Expert in agent design, MCP development, skill architecture, and rapid prototyping. Activate on 'create agent', 'new skill', 'MCP server', 'custom tool', 'agent design'. NOT for using existing agents (invoke them directly), general coding (use language-specific skills), or infrastructure setup (use deployment-engineer).

curiositech/windags-skills

AI-powered calendar management and agent-based scheduling coordination. Covers calendar APIs (Google Calendar, CalDAV/iCal), AI scheduling assistants (Reclaim, Clockwise, Motion, Cal.com), building custom calendar agents with MCP, multi-calendar merging, timezone management, focus block protection, meeting fatigue detection, and agent-to-agent meeting negotiation protocols. Activate on: "calendar agent", "AI scheduling", "calendar coordination", "meeting scheduling", "calendar API", "focus time protection", "calendar optimization", "Google Calendar MCP", "Reclaim", "Clockwise", "Motion", "Cal.com", "smart scheduling", "calendar-aware agent", "timezone scheduling", "agent negotiation meetings". NOT for: manual calendar UI component design (use form-validation-architect), project management scheduling or Gantt charts (use project-management-guru-adhd), general time-tracking or pomodoro apps (use adhd-daily-planner for time-awareness), building the agent itself from scratch (use agent-creator).

curiositech/windags-skills

Build and adopt production AI agent infrastructure in 2026. Covers framework selection (LangGraph, CrewAI, AutoGen, MCP), orchestration patterns, evaluation, observability, memory systems, and tool use. Also covers the SOCIAL dimension: how to sell agent infrastructure internally, change management, measuring ROI, building trust in autonomous systems, and scaling adoption across teams. Activate on: "agent infrastructure", "agent framework comparison", "which agent framework", "sell AI tools internally", "agent adoption", "agent observability", "agent evaluation", "MCP architecture", "agentic mesh", "enterprise AI agents", "AI change management", "agent ROI". NOT for: building specific agents (use ai-engineer), designing agent behavior patterns (use agentic-patterns), prompt tuning (use prompt-engineer).

curiositech/windags-skills

Fundamental patterns for effective agentic behavior. Teaches decomposition, tool orchestration, error recovery, context management, quality self-assessment, and knowing when to stop. Model-agnostic principles that make any agent more effective regardless of domain. Activate on: "how should I structure this agent", "agentic workflow", "agent patterns", "multi-step task", "tool orchestration", "/agentic-patterns", "decompose this", "agent best practices", "chain of actions", "when should the agent stop", "agent loop design". NOT for: creating agent infrastructure (use agent-creator), building DAGs (use windags-architect), specific tool implementation.

curiositech/windags-skills

Automated discovery and matching of agent skills for dynamic task routing and capability assessment

curiositech/windags-skills

Cryptographic security for agentic systems — zero-trust agent networking, signed message envelopes (JWS/JWE), capability-based security (ocaps), Merkle tree audit trails, WASM sandboxing, and formal verification. Covers CLI dev tool security, mTLS between agents, permission boundaries (least privilege for AI agents), and supply chain security for skills/plugins. Activate on: "agent security", "zero trust agents", "secure agent communication", "capability-based security", "ocap", "signed messages between agents", "agent audit trail", "sandbox agent execution", "agent permissions", "mTLS agents", "cryptographic verification", "agent supply chain", "OWASP agentic", "prove agent did X", "tamper-proof agent logs". NOT for: application-level SAST scanning (use security-auditor), network firewall rules (use infrastructure), SOC2/HIPAA compliance (organizational), or prompt injection defense (use prompt-engineer).

curiositech/windags-skills

Data structures and serialization formats for agent-to-agent communication. Covers message envelopes, structured output schemas, capability declarations, task handoff payloads, error/retry signaling, and context windows as data structures. Deep comparison of A2A protocol, MCP, OpenAI function calling, and LangChain message types. Teaches when to use rigid schemas vs free-form with validation, typed vs untyped, streaming vs batch. Activate on: "agent message format", "agent communication schema", "agent-to-agent protocol", "A2A protocol", "MCP message format", "structured output for agents", "agent interop", "interchange format", "agent serialization", "task handoff format", "capability declaration". NOT for: what agents say to each other (use agent-conversation-protocols), orchestration topology (use multi-agent-coordination), building agent infrastructure (use agentic-infrastructure-2026).

curiositech/windags-skills

Logic-based agent programming language implementing BDI architecture for practical autonomous agent development

curiositech/windags-skills

>- Design AgentSpeak(L)-style BDI agents with context-guarded plans, selection functions, and intention stacks. Use for interruptible autonomy, agent policy, and multi-agent orchestration in dynamic environments. NOT for simple rule engines, static planners, or centralized workflows.

curiositech/windags-skills

Foundational concurrent computation model where actors communicate exclusively through asynchronous message passing

curiositech/windags-skills

Build production-ready LLM applications, advanced RAG systems, and intelligent agents. Implements vector search, multimodal AI, agent orchestration, and enterprise AI integrations. Use PROACTIVELY for LLM features, chatbots, AI agents, or AI-powered applications.

curiositech/windags-skills

license: Apache-2.0 NOT for unrelated tasks outside this domain.

関連スキル