backup/framework/.roo/skills/context-synthesizer/SKILL.md
Manage memory in long projects and summarize the current state to prevent agent context loss. Use when starting a new session on a long-running project, resuming work after a break, switching contexts between tasks, or when context window is approaching limits. Ensures continuity and consistency across sessions.
npx skillsauth add b4san/ac-framework context-synthesizerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Memory management and context summarization for long-running projects to maintain continuity and prevent information loss.
Use this skill when:
Read project-index.md (if exists):
Check OpenSpec status:
acfm spec status --json
List active changes:
acfm spec list --json
Create a state summary:
## Project Context Summary
**Project**: [Name]
**Last Updated**: [Date]
**Session**: [Session identifier]
### Current State
**Active Changes**:
1. [Change 1] - [Brief description] - [Status]
2. [Change 2] - [Brief description] - [Status]
**Recently Completed**:
1. [Change 3] - [Completion date]
**Architecture Overview**:
- [Key architectural decisions]
- [Technology stack]
- [Important patterns in use]
### Current Focus
**Primary Task**: [What we're working on now]
**Next Steps**: [Immediate next actions]
**Blockers**: [Any blocking issues]
### Key Files Modified Recently
1. [file1.ext] - [Why it was changed]
2. [file2.ext] - [Why it was changed]
### Important Context
- [Critical information needed for current work]
- [Decisions made in previous sessions]
- [Patterns to follow]
For the current task, identify:
Specifications:
Design Documents:
Task Lists:
Previous Work:
Create a focused summary for the current task:
## Working Context: [Task Name]
**Goal**: [One-sentence objective]
**Background**:
[2-3 sentences of relevant history]
**Requirements** (from spec):
- [Requirement 1]
- [Requirement 2]
**Current State**:
- [What's already done]
- [What's in progress]
- [What's pending]
**Technical Context**:
- **Language/Framework**: [Tech stack]
- **Key Files**: [List of relevant files]
- **Patterns**: [Architectural patterns to follow]
- **Constraints**: [Limitations or requirements]
**References**:
- Spec: [Link to spec]
- Design: [Link to design doc]
- Similar Implementation: [Link to reference code]
If using vector database (Pinecone, Weaviate, etc.):
Index new artifacts:
Update project index:
## Recent Updates
### [Date]
- [Change summary]
- [Files affected]
- [Decisions made]
Tag and categorize:
Before starting work, provide the agent with:
## Context for Current Session
**Project**: [Name]
**Working On**: [Specific task/change]
**Session Goal**: [What to accomplish]
### Relevant Specifications
[Summary of applicable specs]
### Current State
[What's already done]
[What needs to be done]
### Key Information
- [Important fact 1]
- [Important fact 2]
- [Decision to remember]
### Files to Focus On
1. [Primary file]
2. [Secondary file]
3. [Test file]
### Patterns to Follow
[Reference to existing patterns]
Periodically clean up:
Archive completed changes:
acfm spec archive [change-name]
Summarize archived work:
## Archive Summary: [Change Name]
**Completed**: [Date]
**Summary**: [What was done]
**Key Files**: [Files modified]
**Decisions**: [Important decisions made]
Compress old context:
.acfm/ or openspec/ directoriesWhen providing context:
## Current Context Loaded
**Project**: [Name]
**Session ID**: [ID]
**Context Size**: [Token count/Compressed size]
### Active Changes (3)
1. user-authentication - JWT implementation - In Progress
2. api-rate-limiting - Middleware setup - Pending
3. database-migration - Schema updates - Completed
### Current Focus
**Change**: user-authentication
**Task**: Implement token refresh
**Status**: 60% complete
### Key Files
- src/services/auth.js
- src/middleware/auth.js
- tests/auth.test.js
### Recent Decisions
1. Use Redis for token storage
2. Refresh tokens valid for 7 days
3. Access tokens valid for 15 minutes
### Next Steps
1. Implement refresh token endpoint
2. Add token rotation logic
3. Write integration tests
### Context Source
- project-index.md (last modified: 2024-01-15)
- .acfm/changes/user-authentication/ (active)
- references/auth-patterns.md
High Priority (Always include):
Medium Priority (Summarize):
Low Priority (Reference only):
acfm-spec-workflow - Understand OpenSpec structureproject-index - Generate/maintain project documentationsync-index - Keep index in sync with codebaseopenspec-verify-change - Verify context is currentdevelopment
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
development
Automate the generation and maintenance of unit, integration, and end-to-end tests, as well as test data generation and debugging. Use when writing tests for new features, maintaining existing tests after API/UI changes, generating synthetic test data, or debugging test failures. Essential for ensuring code quality and preventing regressions.
testing
Generate comprehensive test suites ensuring requirements are met. Strategies for Unit, Integration, and E2E testing.
development
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes