claude-autopm 1.22.0 → 1.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,6 +38,13 @@ Before starting any implementation, you have access to live documentation throug
38
38
  - `mcp://context7/fastify/latest` - Fastify framework
39
39
  - `mcp://context7/typescript/node` - TypeScript for Node.js
40
40
 
41
+ ### Documentation Retrieval Protocol
42
+
43
+ 1. **Check Framework Docs**: Query context7 for specific framework patterns
44
+ 2. **Database Integration**: Verify latest ORM/ODM best practices
45
+ 3. **Security Standards**: Access current security recommendations
46
+ 4. **Performance Patterns**: Get latest Node.js optimization techniques
47
+
41
48
  ## Core Expertise
42
49
 
43
50
  ### Node.js Mastery
@@ -0,0 +1,29 @@
1
+ # 🔴 MANDATORY: Context7 Query Required
2
+
3
+ **BEFORE proceeding with this command/agent, you MUST:**
4
+
5
+ 1. **Read** the command/agent file to find `**Documentation Queries:**` section
6
+ 2. **Query Context7 MCP** for EACH listed topic
7
+ 3. **Verify** patterns against live documentation
8
+ 4. **Apply** Context7 guidance in your implementation
9
+
10
+ ## Why This Matters
11
+
12
+ - **Training data is STALE** - APIs change, best practices evolve
13
+ - **Context7 is CURRENT** - Live documentation, latest versions
14
+ - **Hallucinations PREVENTED** - Real examples, verified patterns
15
+ - **Quality GUARANTEED** - Industry-standard approaches
16
+
17
+ ## Zero Tolerance Policy
18
+
19
+ ❌ **NO** implementation without Context7 verification
20
+ ❌ **NO** "I remember how this works"
21
+ ❌ **NO** assumptions about API signatures
22
+ ✅ **ALWAYS** query Context7 first
23
+ ✅ **ALWAYS** verify against live docs
24
+ ✅ **ALWAYS** apply documented patterns
25
+
26
+ ---
27
+
28
+ *This reminder is shown by `.claude/hooks/` enforcement system*
29
+ *Defined in: `.claude/rules/context7-enforcement.md`*
@@ -0,0 +1,38 @@
1
+ #!/bin/bash
2
+
3
+ # Unified Context7 Enforcement Hook
4
+ # Triggered by Claude Code on tool-use events
5
+ # Shows Context7 queries that MUST be performed before command/agent execution
6
+
7
+ set -e
8
+
9
+ # Get the user's prompt/command
10
+ PROMPT="${PROMPT:-$1}"
11
+
12
+ # Check if this is a command invocation (starts with /)
13
+ if [[ "$PROMPT" =~ ^/([a-z-]+):([a-z-]+) ]]; then
14
+ CATEGORY="${BASH_REMATCH[1]}"
15
+ COMMAND="${BASH_REMATCH[2]}"
16
+
17
+ echo ""
18
+ echo "🔒 Context7 Enforcement: Command Detected"
19
+ echo " Command: /$CATEGORY:$COMMAND"
20
+ echo ""
21
+
22
+ # Run the command hook
23
+ node .claude/hooks/pre-command-context7.js "$PROMPT"
24
+
25
+ elif [[ "$PROMPT" =~ ^@([a-z-]+) ]]; then
26
+ AGENT="${BASH_REMATCH[1]}"
27
+
28
+ echo ""
29
+ echo "🔒 Context7 Enforcement: Agent Detected"
30
+ echo " Agent: @$AGENT"
31
+ echo ""
32
+
33
+ # Run the agent hook
34
+ node .claude/hooks/pre-agent-context7.js "$PROMPT"
35
+ fi
36
+
37
+ # Always allow execution to continue
38
+ exit 0
@@ -2,6 +2,41 @@
2
2
 
3
3
  > **CRITICAL**: This rule has HIGHEST PRIORITY. ALL commands and agents MUST query Context7 before execution.
4
4
 
5
+ ---
6
+
7
+ ## 🔴 VISUAL REMINDER FOR EVERY COMMAND/AGENT
8
+
9
+ **WHEN YOU SEE:** User writes `/pm:epic-decompose` or `@aws-cloud-architect`
10
+
11
+ **YOU MUST IMMEDIATELY:**
12
+
13
+ 1. 📖 **ANNOUNCE**: "I will now query Context7 for required documentation..."
14
+ 2. 🔍 **READ** the command/agent file to extract Documentation Queries
15
+ 3. 🌐 **QUERY** Context7 MCP for EACH listed topic using mcp__context7__get-library-docs
16
+ 4. 📝 **SUMMARIZE** key findings from Context7 results
17
+ 5. ✅ **CONFIRM**: "Context7 verification complete. Proceeding with [command/agent]..."
18
+
19
+ **VISUAL OUTPUT FOR USER:**
20
+
21
+ ```
22
+ 🔒 Context7 Enforcement Active
23
+
24
+ 📋 Command: /pm:epic-decompose
25
+ 📚 Querying Context7 for required documentation...
26
+
27
+ ➜ mcp://context7/agile/epic-decomposition
28
+ ➜ mcp://context7/agile/task-sizing
29
+ ➜ mcp://context7/agile/user-stories
30
+ ➜ mcp://context7/project-management/task-breakdown
31
+
32
+ ✅ Context7 queries complete
33
+ 📖 Key findings: [summarize what you learned]
34
+
35
+ Proceeding with epic decomposition using Context7 best practices...
36
+ ```
37
+
38
+ ---
39
+
5
40
  ## Core Context7 Philosophy
6
41
 
7
42
  **Prime Directive**: Query live documentation from Context7 MCP BEFORE implementing any solution.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-autopm",
3
- "version": "1.22.0",
3
+ "version": "1.22.1",
4
4
  "description": "Autonomous Project Management Framework for Claude Code - Advanced AI-powered development automation",
5
5
  "main": "bin/autopm.js",
6
6
  "bin": {