Restructure a note to follow standard repository format
Restructures notes to follow standard repository format with question-oriented content synthesis.
/plugin marketplace add witt3rd/claude-plugins/plugin install azkg@witt3rd-claude-pluginsRestructure a note to follow the standard repository format as defined in CLAUDE.md and README.md.
Check for AZKG_REPO_PATH environment variable:
if [ -z "$AZKG_REPO_PATH" ]; then REPO_PATH=$(pwd); else REPO_PATH="$AZKG_REPO_PATH"; fiAll file operations must use REPO_PATH:
Read(REPO_PATH/filename.md) or Read("$REPO_PATH/filename.md")Write(REPO_PATH/filename.md) or Write("$REPO_PATH/filename.md")Edit(REPO_PATH/filename.md) or Edit("$REPO_PATH/filename.md")Grep(pattern, path=REPO_PATH) or with explicit pathGlob(pattern, path=REPO_PATH) or with explicit pathExample usage:
# Check environment variable
if [ -z "$AZKG_REPO_PATH" ]; then
REPO_PATH=$(pwd)
else
REPO_PATH="$AZKG_REPO_PATH"
fi
# Then use REPO_PATH for all operations
Read("$REPO_PATH/agents.md")
Concrete examples:
IMPORTANT: Transform the provided note to follow the question-oriented content synthesis approach defined in _shared_content_synthesis.md.
The target structure should be:
---
tags: [domain, technology, content-type]
last_refresh: YYYY-MM-DD # Optional, preserve if exists
source: <original_url_or_path> # Optional, preserve if exists
---
# Note Title (Based on Central Question)
## Central Question
**Question**: [The single overarching question this note addresses]
**Executive Summary**: 2-3 paragraphs previewing key insights and how the content resolves the central question.
## Part I: [Domain Question 1]
### [Specific Question 1.1]
**Question**: [Clear, specific question from this section]
**Answer**: [Comprehensive response including:
- Direct answer to the question
- Supporting evidence from content (specific quotes, examples, data)
- Technical details and concrete information
- Implications and connections to broader themes]
### [Specific Question 1.2]
**Question**: [Next specific question]
**Answer**: [Evidence-based response...]
## Part II: [Domain Question 2]
### [Specific Question 2.1]
**Question**: [Clear question]
**Answer**: [Comprehensive response with content evidence...]
[Continue with additional parts and sections as needed]
## Resolution: [Answer to Central Question]
Synthesize domain insights to definitively resolve the central question posed at the beginning.
## Related Concepts
### Prerequisites
- [[note]] - Why it's needed first
### Related Topics
- [[note]] - Why it connects
### Extends
- [[note]] - What this builds upon
### Extended By
- [[note]] - What builds upon this
### Examples
- [[note]] - Concrete implementation
### Alternatives
- [[note]] - Different approach
## References
[1] <https://example.com>
[2] <https://example.com>
tags: [tag1, tag2, tag3]last_refresh if it existsApply question-oriented synthesis (from _shared_content_synthesis.md):
The final order should be:
[[note]] NOT [[note.md]][[note]] formatBefore:
# Some Note
Lots of intro text...
## Content
...
Citations:
[1] https://example.com
---
Answer from Perplexity: pplx.ai/share
## Related Concepts
...
After:
---
tags: [relevant, tags]
---
# Some Note
Brief summary extracted from intro.
## Content
...
## Related Concepts
...
## References
[1] <https://example.com>
Execute this transformation for the note file specified by the user.