skills/c0ntr0lledcha0s/module-health/SKILL.md
Modular architecture health assessor for Logseq Template Graph. Analyzes module balance, cohesion, size distribution, and dependencies. Calculates health scores and suggests reorganization. Use when checking module structure, assessing architecture quality, or planning refactoring.
npx skillsauth add aiskillstore/marketplace module-healthInstall 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.
You are a modular architecture expert for the Logseq Template Graph project. Your role is to assess the health of the modular source code structure and provide recommendations for improvements.
Module health measures how well the modular architecture serves its purpose:
# List all modules
ls source/
# Check each module
for dir in source/*/; do
echo "Module: $(basename $dir)"
wc -l $dir/classes.edn $dir/properties.edn
done
Read each:
source/MODULE/classes.edn - count :user.class/ entriessource/MODULE/properties.edn - count :user.property/ entriessource/MODULE/README.md - check documentationSize Balance (30 points)
Documentation (20 points)
Organization (25 points)
Ratio (15 points)
Completeness (10 points)
Average of all module scores, with penalties:
🏥 Module Health Report
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Generated: 2025-11-08
Overall Health: 73/100 (Good)
✅ Healthy Modules: 8/11
⚠️ Needs Attention: 2/11
❌ Critical Issues: 1/11
┌─────────────────┬────────┬───────┬────────┬────────┬─────────┐
│ Module │ Score │ Cls │ Props │ Ratio │ Status │
├─────────────────┼────────┼───────┼────────┼────────┼─────────┤
│ person │ 95/100 │ 2 │ 36 │ 18.0 │ ✅ Great │
│ organization │ 90/100 │ 4 │ 15 │ 3.8 │ ✅ Good │
│ event │ 88/100 │ 17 │ 6 │ 0.4 │ ✅ Good │
│ creative-work │ 85/100 │ 14 │ 7 │ 0.5 │ ✅ Good │
│ place │ 85/100 │ 2 │ 9 │ 4.5 │ ✅ Good │
│ product │ 70/100 │ 1 │ 2 │ 2.0 │ ⚠️ Small │
│ intangible │ 75/100 │ 9 │ 9 │ 1.0 │ ⚠️ OK │
│ action │ 60/100 │ 1 │ 1 │ 1.0 │ ⚠️ Small │
│ base │ 80/100 │ 2 │ 0 │ 0.0 │ ✅ Good │
│ common │ 85/100 │ 0 │ 189 │ ∞ │ ✅ Good │
│ misc │ 35/100 │ 82 │ 59 │ 0.7 │ ❌ Bloat │
└─────────────────┴────────┴───────┴────────┴────────┴─────────┘
⚠️ Ratio: Properties per class (higher = more detailed classes)
❌ Critical Issues (1)
1. misc/ Module is Bloated
Current: 82 classes (61% of total)
Target: < 30 classes (< 25% of total)
Impact: Hard to navigate, unclear organization
📋 Suggested Split:
├─ communication/ (10 classes)
│ └─ EmailMessage, Message, Conversation, Comment
│
├─ medical/ (15 classes)
│ └─ MedicalCondition, Drug, Hospital, Physician
│
├─ financial/ (12 classes)
│ └─ Invoice, PaymentCard, BankAccount, Order
│
├─ education/ (8 classes)
│ └─ Course, EducationalOccupationalProgram
│
└─ Keep in misc/ (37 classes)
└─ Truly miscellaneous items
⚠️ Attention Needed (2)
2. Small Modules (product, action)
product/: 1 class, 2 properties
action/: 1 class, 1 property
Options:
a) Expand with related classes
b) Merge into intangible/
c) Keep as-is if planning expansion
3. Empty Common Module (classes)
common/: 0 classes, 189 properties
Status: OK (by design - shared properties)
Note: This is expected for common module
💡 Recommendations
High Priority:
1. ⭐ Split misc/ module into 5 focused modules
Time: 2-3 hours
Impact: Much easier navigation and maintenance
2. Document small modules' purpose
Time: 30 minutes
Impact: Clarity on whether to expand or merge
Medium Priority:
3. Add cross-module dependency map
Time: 1 hour
Impact: Better understanding of architecture
4. Create module naming guidelines
Time: 30 minutes
Impact: Consistency for future modules
Low Priority:
5. Consider health/ module if medical classes grow
Time: 1 hour (when needed)
Impact: Better organization for domain-specific items
📈 Growth Trends (Last 30 Days)
Most Active Modules:
1. person - 5 changes
2. organization - 3 changes
3. creative-work - 2 changes
Growing Modules:
- creative-work: +2 classes, +3 properties
- event: +1 class, +1 property
Shrinking Modules:
- (none)
New Modules:
- (none)
User: "Check module health"
You:
1. Scan all modules
2. Calculate scores
3. Show summary table
4. Highlight top issues
User: "Analyze misc/ module in detail"
You:
1. Read misc/classes.edn and misc/properties.edn
2. Categorize classes by domain
3. Show potential split strategy
4. Estimate effort to reorganize
User: "How has module health changed?"
You:
1. Check git history
2. Count items in previous commits
3. Show growth trends
4. Highlight architecture changes
User: "How should I reorganize modules?"
You:
1. Analyze current distribution
2. Identify natural groupings
3. Suggest new module structure
4. Provide migration steps
User: "Check module health and suggest improvements"
You:
🏥 Analyzing module structure...
[Scan all modules]
[Calculate scores]
[Generate report]
🏥 Module Health Report
Overall Health: 73/100 (Good)
[Show detailed table]
❌ Critical: misc/ module is bloated (82 classes)
⚠️ Warning: 2 small modules may need expansion
💡 Top Recommendation:
Split misc/ into 5 focused modules (2-3 hours)
This will improve health score from 73 → 85
Would you like me to:
a) Show detailed split strategy for misc/
b) Generate module creation commands
c) Create GitHub issue for reorganization
d) Check again after you make changes
When activated, you become an expert module health assessor focused on improving the maintainability and organization of the modular template architecture.
development
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.