Initial commit
This commit is contained in:
43
commands/add-to-context.md
Normal file
43
commands/add-to-context.md
Normal file
@@ -0,0 +1,43 @@
|
||||
---
|
||||
description: Add new contextual information to the repository's context pool
|
||||
---
|
||||
|
||||
I would like to add new contextual information to this repository.
|
||||
|
||||
The context data is gathered in CONTEXT.md (or in a context-data/ directory if chunked into multiple files).
|
||||
|
||||
I will provide new context that adds information to the context pool.
|
||||
|
||||
After I provide this information, execute these tasks in order:
|
||||
|
||||
## Task 1: Update the Context Pool
|
||||
|
||||
Add the new information to the appropriate location:
|
||||
|
||||
**If using CONTEXT.md:**
|
||||
- Integrate the new information into CONTEXT.md
|
||||
- Add appropriate section headers if introducing new topics
|
||||
- Maintain the narrative, conversational style
|
||||
- Ensure logical organization and flow
|
||||
- Avoid duplication with existing content
|
||||
|
||||
**If using context-data/ directory:**
|
||||
- Determine the most appropriate file based on topic/category
|
||||
- Create a new file if the information represents a new category
|
||||
- Use descriptive filenames (e.g., `user-requirements.md`, `technical-constraints.md`)
|
||||
- Maintain consistent formatting across files
|
||||
|
||||
## Task 2: Update CLAUDE.md
|
||||
|
||||
Review and update CLAUDE.md to ensure it remains accurate and aligned with the expanded context:
|
||||
|
||||
1. **Check for new requirements**: If the new context introduces requirements, add them to CLAUDE.md
|
||||
2. **Update project overview**: Reflect any changes to project scope or vision
|
||||
3. **Add implementation guidance**: Include any new technical constraints or decisions
|
||||
4. **Maintain consistency**: Ensure CLAUDE.md accurately reflects the expanded context pool
|
||||
|
||||
The goal is to keep both the human context (CONTEXT.md) and agent briefing (CLAUDE.md) synchronized and accurate.
|
||||
|
||||
## User Input Required
|
||||
|
||||
Please provide the new context you'd like to add. I'll handle the integration and updates.
|
||||
79
commands/chunk-repo-context.md
Normal file
79
commands/chunk-repo-context.md
Normal file
@@ -0,0 +1,79 @@
|
||||
---
|
||||
description: Split CONTEXT.md into organized chunks in context-data/ directory
|
||||
---
|
||||
|
||||
This repository currently uses a single CONTEXT.md file for storing project context.
|
||||
|
||||
As projects grow, a single context file can become unwieldy. This command will help split CONTEXT.md into organized, topic-based chunks stored in a context-data/ directory.
|
||||
|
||||
Execute these tasks in sequence:
|
||||
|
||||
## Task 1: Analyze Current Context
|
||||
|
||||
Read and analyze the current CONTEXT.md to identify:
|
||||
- Distinct topics and themes
|
||||
- Natural section boundaries
|
||||
- Logical groupings of information
|
||||
- Information that could be categorized
|
||||
|
||||
## Task 2: Propose Chunking Structure
|
||||
|
||||
Based on the analysis, propose a chunking structure with:
|
||||
- Suggested topic-based filenames (e.g., `project-vision.md`, `technical-requirements.md`, `user-stories.md`)
|
||||
- What content would go in each file
|
||||
- Rationale for the proposed organization
|
||||
|
||||
Present this structure to the user for approval before proceeding.
|
||||
|
||||
## Task 3: Create context-data/ Directory Structure
|
||||
|
||||
After user approval:
|
||||
1. Create `context-data/` directory in repository root
|
||||
2. Create individual markdown files based on approved structure
|
||||
3. Distribute content from CONTEXT.md into appropriate files
|
||||
4. Ensure each file has:
|
||||
- Clear descriptive filename
|
||||
- Appropriate section headers
|
||||
- Consistent formatting
|
||||
- Preserved narrative style
|
||||
|
||||
## Task 4: Create Context Index
|
||||
|
||||
Create `context-data/README.md` that serves as an index:
|
||||
- List all context files with brief descriptions
|
||||
- Explain the organization structure
|
||||
- Provide guidance on where to add new context
|
||||
- Include cross-references between related files
|
||||
|
||||
## Task 5: Update CLAUDE.md
|
||||
|
||||
Update CLAUDE.md to reference the new chunked structure:
|
||||
- Note that context is now organized in context-data/ directory
|
||||
- Reference the index file (context-data/README.md)
|
||||
- Provide guidance on which context files are most relevant for specific tasks
|
||||
- Update any existing references to CONTEXT.md
|
||||
|
||||
## Task 6: Archive Original CONTEXT.md
|
||||
|
||||
- Rename CONTEXT.md to CONTEXT.md.backup
|
||||
- Add a note in the backup explaining it has been chunked
|
||||
- Keep the backup for reference
|
||||
|
||||
## Best Practices for Chunking
|
||||
|
||||
**Good chunk topics:**
|
||||
- Project vision and goals
|
||||
- User requirements and stories
|
||||
- Technical specifications
|
||||
- Architecture decisions
|
||||
- Development workflow
|
||||
- Domain knowledge
|
||||
- Historical context and decisions
|
||||
- Integration requirements
|
||||
|
||||
**Chunking guidelines:**
|
||||
- Each file should cover a cohesive topic
|
||||
- Aim for 200-500 lines per file (adjust based on content)
|
||||
- Use descriptive, consistent naming (kebab-case recommended)
|
||||
- Avoid over-chunking (don't create files with only a few lines)
|
||||
- Ensure chunks can be understood somewhat independently
|
||||
33
commands/claude-to-context.md
Normal file
33
commands/claude-to-context.md
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
description: Extract information from CLAUDE.md and incorporate into CONTEXT.md
|
||||
---
|
||||
|
||||
This repository contains CLAUDE.md which provides structured instructions and context for Claude Code.
|
||||
|
||||
I would like to extract valuable information from CLAUDE.md and incorporate it into CONTEXT.md as supplementary contextual information. This is useful when CLAUDE.md contains details that should be preserved in the more detailed, narrative context file.
|
||||
|
||||
Execute these tasks in sequence:
|
||||
|
||||
## Task 1: Extract Relevant Information
|
||||
|
||||
Review CLAUDE.md and identify information that would be valuable to preserve in CONTEXT.md:
|
||||
- Project requirements and specifications
|
||||
- Implementation details and decisions
|
||||
- Technical constraints or considerations
|
||||
- Vision statements or project goals
|
||||
- Background information about the project's purpose
|
||||
- Any context that helps understand the "why" behind decisions
|
||||
|
||||
Focus on information that provides deeper understanding rather than purely procedural instructions.
|
||||
|
||||
## Task 2: Update CONTEXT.md
|
||||
|
||||
Add the extracted information to CONTEXT.md, integrating it naturally with existing content:
|
||||
|
||||
1. **Maintain the narrative style**: CONTEXT.md should remain conversational and human-friendly
|
||||
2. **Organize logically**: Add clear section headers if introducing new topics
|
||||
3. **Avoid duplication**: If similar information exists, merge thoughtfully rather than duplicate
|
||||
4. **Preserve detail**: Don't summarize or condense - CONTEXT.md is meant to be comprehensive
|
||||
5. **Add attribution**: Consider noting "Extracted from CLAUDE.md:" where appropriate
|
||||
|
||||
The goal is to enrich CONTEXT.md with valuable information from CLAUDE.md while maintaining its character as a human-friendly, detailed context repository.
|
||||
47
commands/context-to-claude.md
Normal file
47
commands/context-to-claude.md
Normal file
@@ -0,0 +1,47 @@
|
||||
---
|
||||
description: Convert CONTEXT.md (human scratchpad) to CLAUDE.md (agent briefing)
|
||||
---
|
||||
|
||||
This repository contains a file called CONTEXT.md (or context.md) which provides detailed, human-friendly description of the project purpose, motivations, and vision.
|
||||
|
||||
This file likely contains conversational language, possibly captured using voice transcription, and may include typos, speech artifacts, and verbose explanations.
|
||||
|
||||
Execute these tasks in sequence:
|
||||
|
||||
## Task 1: Proofread CONTEXT.md
|
||||
|
||||
Lightly edit CONTEXT.md to improve readability while preserving the human voice and intent:
|
||||
- Add paragraph spacing for better readability
|
||||
- Add punctuation where needed
|
||||
- Fix typos and grammatical errors
|
||||
- Fix errors that appear to be AI transcription mistakes
|
||||
- Remove obvious speech artifacts (um, uh, repeated words)
|
||||
- Preserve the conversational, expressive tone
|
||||
|
||||
Do NOT over-edit or strip away personality. The goal is clarity, not sterility.
|
||||
|
||||
## Task 2: Create/Update CLAUDE.md
|
||||
|
||||
CLAUDE.md is the agent-facing context file that Claude Code automatically reads. Think of CONTEXT.md as the user's expressive scratchpad and CLAUDE.md as your structured implementation guide.
|
||||
|
||||
Create or update CLAUDE.md with:
|
||||
|
||||
1. **Project Overview**: Concise summary of purpose and goals
|
||||
2. **Key Requirements**: Specific, actionable requirements extracted from CONTEXT.md
|
||||
3. **Implementation Guidance**: Technical direction, architecture decisions, constraints
|
||||
4. **Workflow Instructions**: How the agent should approach tasks in this project
|
||||
5. **Context Reference Note**: Add this section:
|
||||
|
||||
```markdown
|
||||
## Human Context Reference
|
||||
|
||||
This project includes a CONTEXT.md file containing detailed, human-authored context including:
|
||||
- Project vision and motivations
|
||||
- Detailed requirements and use cases
|
||||
- User's thought process and decision rationale
|
||||
- Additional background information
|
||||
|
||||
When you need deeper understanding of the project's purpose or user intent, refer to CONTEXT.md for the full narrative context.
|
||||
```
|
||||
|
||||
Keep CLAUDE.md focused, structured, and actionable. Extract the essence of what's in CONTEXT.md and present it in a format optimized for agent processing.
|
||||
59
commands/manual-context-update.md
Normal file
59
commands/manual-context-update.md
Normal file
@@ -0,0 +1,59 @@
|
||||
---
|
||||
description: Manually edit and synchronize CONTEXT.md and CLAUDE.md
|
||||
---
|
||||
|
||||
I would like to make manual updates to the context files in this repository.
|
||||
|
||||
This command provides a guided workflow for making coordinated changes to both CONTEXT.md (human context) and CLAUDE.md (agent briefing).
|
||||
|
||||
Execute these tasks interactively:
|
||||
|
||||
## Task 1: Determine Update Type
|
||||
|
||||
Ask the user which type of update they want to make:
|
||||
|
||||
1. **Update CONTEXT.md only** - Add/edit human-friendly context without changing agent briefing
|
||||
2. **Update CLAUDE.md only** - Refine agent instructions without changing source context
|
||||
3. **Update both files** - Make coordinated changes to both files
|
||||
4. **Restructure context** - Reorganize how context is stored (single file vs. chunked)
|
||||
|
||||
## Task 2: Execute Updates Based on Type
|
||||
|
||||
### For CONTEXT.md updates:
|
||||
- Make the requested changes while preserving narrative style
|
||||
- Ensure proper formatting and organization
|
||||
- Maintain conversational tone
|
||||
|
||||
### For CLAUDE.md updates:
|
||||
- Make the requested changes while keeping it structured and actionable
|
||||
- Ensure clarity and precision
|
||||
- Maintain agent-optimized format
|
||||
|
||||
### For coordinated updates:
|
||||
- Update CONTEXT.md first with detailed information
|
||||
- Then update CLAUDE.md to reflect new/changed requirements
|
||||
- Ensure consistency between files
|
||||
|
||||
### For restructuring:
|
||||
- If converting to chunked context: create context-data/ directory, split content logically
|
||||
- If consolidating: merge context-data/ files back into single CONTEXT.md
|
||||
- Update CLAUDE.md to reference new structure
|
||||
|
||||
## Task 3: Validate Consistency
|
||||
|
||||
After making changes:
|
||||
1. Verify CLAUDE.md accurately reflects current CONTEXT.md
|
||||
2. Check that no conflicting information exists between files
|
||||
3. Ensure all cross-references remain valid
|
||||
4. Confirm proper formatting and organization
|
||||
|
||||
## Task 4: Summarize Changes
|
||||
|
||||
Provide a summary of:
|
||||
- What was changed in each file
|
||||
- Why the changes were made
|
||||
- Any impacts on project structure or workflow
|
||||
|
||||
## User Input Required
|
||||
|
||||
Please describe what updates you'd like to make to the context files.
|
||||
51
commands/remove-from-context.md
Normal file
51
commands/remove-from-context.md
Normal file
@@ -0,0 +1,51 @@
|
||||
---
|
||||
description: Remove outdated or incorrect information from the context pool
|
||||
---
|
||||
|
||||
I would like to remove information from this repository's context pool.
|
||||
|
||||
The context data is stored in CONTEXT.md (or in a context-data/ directory if chunked).
|
||||
|
||||
I will specify what information should be removed.
|
||||
|
||||
After I provide this specification, execute these tasks in order:
|
||||
|
||||
## Task 1: Remove from Context Pool
|
||||
|
||||
Locate and remove the specified information:
|
||||
|
||||
**If using CONTEXT.md:**
|
||||
- Find the section(s) containing the information to remove
|
||||
- Delete the specified content
|
||||
- Ensure remaining content flows naturally
|
||||
- Adjust section headers if needed
|
||||
- Preserve document structure and readability
|
||||
|
||||
**If using context-data/ directory:**
|
||||
- Identify file(s) containing the information to remove
|
||||
- Remove the specified content from relevant files
|
||||
- Delete entire files if they become empty or irrelevant
|
||||
- Ensure cross-references in other files remain valid
|
||||
|
||||
## Task 2: Update CLAUDE.md
|
||||
|
||||
Review and update CLAUDE.md to ensure it remains accurate after the removal:
|
||||
|
||||
1. **Remove obsolete information**: Delete any references to the removed context
|
||||
2. **Update requirements**: Adjust project requirements if they were affected
|
||||
3. **Revise guidance**: Update implementation guidance to reflect current context
|
||||
4. **Check consistency**: Ensure CLAUDE.md is consistent with the updated context pool
|
||||
|
||||
## Task 3: Confirm Changes
|
||||
|
||||
Provide a summary of:
|
||||
- What was removed from the context pool
|
||||
- What changes were made to CLAUDE.md
|
||||
- Whether any files were deleted (if using context-data/ directory)
|
||||
|
||||
## User Input Required
|
||||
|
||||
Please specify what information you'd like to remove from the context pool. You can:
|
||||
- Describe the topic/content to remove
|
||||
- Specify section names or file names
|
||||
- Provide the actual text to remove
|
||||
Reference in New Issue
Block a user