本文へ移動
cccskills
無料GitHub で公開

memory-system

AID Memory System for session feedback, learning cycles, and skill improvement. Manages state, feedback collection, and improvement analysis. Load for /aid-init, /aid-start, /aid-status, /aid-end, /aid-improve, /aid-memory, /aid-reset.

インストール方法を見る

含まれるファイル(24)

  • SKILL.md6.2 KB
  • references/phases/breakdown/cumulative.md450 B
  • references/phases/breakdown/SKILL.md1.2 KB
  • references/phases/development/cumulative.md952 B
  • references/phases/development/SKILL.md775 B
  • references/phases/discovery/cumulative.md950 B
  • references/phases/discovery/SKILL.md2.7 KB
  • references/phases/prd/cumulative.md944 B
  • references/phases/prd/SKILL.md458 B
  • references/phases/qa-ship/cumulative.md950 B
  • references/phases/qa-ship/SKILL.md898 B
  • references/phases/tech-spec/cumulative.md950 B
  • references/phases/tech-spec/SKILL.md810 B
  • references/roles/data-scientist/cumulative.md1.0 KB
  • references/roles/data-scientist/SKILL.md974 B
  • references/roles/developer/cumulative.md1.0 KB
  • references/roles/developer/SKILL.md802 B
  • references/roles/product-manager/cumulative.md1020 B
  • references/roles/product-manager/SKILL.md808 B
  • references/roles/qa-engineer/cumulative.md1.0 KB
  • references/roles/qa-engineer/SKILL.md749 B
  • references/roles/tech-lead/cumulative.md1.0 KB
  • references/roles/tech-lead/SKILL.md819 B
  • SKILL.extended.md9.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Memory System Skill

Triggers

Load when the user invokes any of these; otherwise do not load.

CommandDescription
/aid-initInitialize AID system / memory system (first time setup)
/aid-start [role] [phase]Start a work session
/aid-statusShow current session state
/aid-endComplete phase gate, collect feedback
/aid-improveRun improvement analysis (spawns sub-agent)
/aid-memoryManage memory entries
/aid-resetReset memory system (clear state & feedback)

Enums

Roles: product-manager (pm), developer (dev), qa-engineer (qa), tech-lead (lead), data-scientist (ds)

Phases: discovery (Phase 0), prd (Phase 1), tech-spec (Phase 2), breakdown (Phase 3), development (Phase 4), qa-ship (Phase 5)

Sub-Agent: Memory Analysis

On /aid-improve, spawn the memory-analysis-agent:

Task(
  subagent_type: "general-purpose",
  model: "opus",
  prompt: [Read ../../agents/memory-analysis-agent.md],
  description: "Memory system improvement analysis"
)

Pass:

{{FEEDBACK_DATA}} - Contents of ~/.aid/feedback/pending/*.json
{{CURRENT_SKILLS}} - Section headers from skills/memory-system/references/
{{TREND_DATA}} - Contents of ~/.aid/metrics/trends.json
{{MEMORY_ENTRIES}} - Current AID:* Claude Memory entries

Agent returns:

{
  "suggestions": [...],
  "memory_candidates": [...],
  "trends_analysis": {...}
}

Session Start Flow (/aid-start)

  1. Check AID directory:
IF ~/.aid/ does not exist:
  → Run /aid-init flow
  → Create directory structure
  → Initialize with defaults
  → Display: "🚀 AID Memory System initialized!"
  1. Load state: read ~/.aid/state.json; check pending_feedback_count; check sessions_since_last_improvement.
  2. Check improvement suggestion:
IF pending feedback >= threshold:
  Display:
  "📊 I have {pending} feedback items waiting for analysis.
   Would you like to review insights and improve skills?
   [Yes, let's improve] [No, continue working]"
  1. Determine role & phase:
IF /aid-start <role> <phase> provided:
  → Use provided values
ELIF state.last_session exists:
  → Suggest: "Continue as {last_role} in {last_phase}?"
ELSE:
  → Ask for role and phase
  1. Load skills from skills/memory-system/references/, in order:
1. roles/{role}/SKILL.md
2. roles/{role}/cumulative.md
3. phases/{phase}/SKILL.md
4. phases/{phase}/cumulative.md
  1. Update state & begin:
Update ~/.aid/state.json with:
- current_session.active = true
- current_session.role = role
- current_session.phase = phase
- current_session.started_at = now()

Greet user and ask what they're working on.

Session Work Flow

Track revisions (internal counter):

revision_triggers = [
  "fix", "change", "update", "wrong", "missing", "add",
  "incorrect", "error", "should be", "not right", "revise"
]

On each user message containing trigger:
  revision_count += 1
  Note what needed fixing for feedback

Note patterns (internal):

positive_triggers = ["great", "perfect", "exactly", "good", "excellent"]

On positive trigger:
  Note what worked well for feedback

Phase Gate Flow (/aid-end or phase completion detected)

  1. Display summary:
📋 Phase Summary: {phase_display_name}

Completed deliverables:
• {deliverable_1}
• {deliverable_2}

Revisions made: {revision_count}
  1. Request rating (MANDATORY):
📊 Quality Rating (1-5):

1 ⭐ - Poor, needs significant improvement
2 ⭐⭐ - Below average, missing important elements
3 ⭐⭐⭐ - Acceptable, worked but room for improvement
4 ⭐⭐⭐⭐ - Good, almost perfect
5 ⭐⭐⭐⭐⭐ - Excellent, exactly what I needed

MUST get rating before proceeding
  1. Request qualitative feedback (optional): What worked well? What could be improved? Additional notes?
  2. Save feedback file:
Save to ~/.aid/feedback/pending/{timestamp}.json:
{
  "context": { "role": "...", "phase": "..." },
  "metrics": { "rating": N, "revisions": N },
  "qualitative": { "what_worked": "...", "what_didnt": "..." }
}
  1. Update state:
Update ~/.aid/state.json:
- statistics.total_sessions += 1
- statistics.pending_feedback_count += 1
- statistics.sessions_since_last_improvement += 1
- current_session.active = false

Improvement Flow (/aid-improve)

  1. Gather data: all files from ~/.aid/feedback/pending/; current skills from skills/memory-system/references/; trends from ~/.aid/metrics/trends.json.
  2. Spawn analysis agent:
Task(
  subagent_type: "general-purpose",
  model: "opus",
  prompt: [../../agents/memory-analysis-agent.md with variables],
  description: "Analyze feedback and suggest improvements"
)
  1. Present suggestions with approval buttons: [Approve] [Edit] [Reject] for each skill update; [Promote to Memory] [Skip] for each memory candidate.
  2. Apply changes: update approved skill files; add approved memory entries; archive processed feedback to ~/.aid/feedback/processed/.

Anonymization Rules

NEVER include in feedback:

  • ❌ Project name or identifier
  • ❌ Company name
  • ❌ Domain-specific terms
  • ❌ Code snippets
  • ❌ User names

ALWAYS include:

  • ✅ Role (product-manager, developer, etc.)
  • ✅ Phase (discovery, prd, etc.)
  • ✅ Rating (1-5)
  • ✅ Revision count
  • ✅ Generic methodology feedback

State Files

FilePurpose
~/.aid/state.jsonCurrent session state
~/.aid/config.yamlUser configuration
~/.aid/feedback/pending/Unprocessed feedback
~/.aid/feedback/processed/Archived feedback
~/.aid/metrics/trends.jsonHistorical trends

Error Handling

ErrorAction
Missing ~/.aid/Run /aid-init automatically
Missing skill filesUse defaults, log warning
Corrupted state.jsonBackup and reset
User skips ratingGently insist, then save as null

Related

  • Agent: ../../agents/memory-analysis-agent.md
  • References: skills/memory-system/references/
  • Commands: ../../commands/aid-*.md

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

AID Phase 4 - Development phase. Use for implementing features, TDD practices, code reviews, transitioning from planning to QA.

日本語の概要は準備中です。原文の説明を表示しています。

ilandahan/AID102026年9月23日 更新

AID Phase 0 - Research & discovery. Use for validating problem spaces, identifying stakeholders, defining success metrics, deciding whether to proceed.

日本語の概要は準備中です。原文の説明を表示しています。

ilandahan/AID102026年9月23日 更新

AID Phase 3 - Implementation Planning with consolidation-first approach. Resolves contradictions between PRD and Tech Spec, creates consolidated master document, then breaks down into actionable tasks and populates Jira. Includes sprint planning and risk assessment.

日本語の概要は準備中です。原文の説明を表示しています。

ilandahan/AID102026年9月23日 更新

aid-prd

無料

AID Phase 1 - PRD creation. Use for user stories, acceptance criteria, scoping features, transitioning from discovery to tech spec.

日本語の概要は準備中です。原文の説明を表示しています。

ilandahan/AID102026年9月23日 更新

AID Phase 5 - QA and Release. Use for validating implementations, acceptance tests, preparing releases, deployment, operational readiness.

日本語の概要は準備中です。原文の説明を表示しています。

ilandahan/AID102026年9月23日 更新

AID Phase 2 - Technical Specification. Use for system architecture, API contracts, data models, security architecture, transitioning from PRD to implementation.

日本語の概要は準備中です。原文の説明を表示しています。

ilandahan/AID102026年9月23日 更新

ilandahan のスキルをすべて見る

このスキルの問題を報告する