← Back to list

solid-detection
by fusengine
Redefining development through cognitive automation and collaborative agent systems.
⭐ 0🍴 0📅 Jan 25, 2026
SKILL.md
name: solid-detection description: Multi-language SOLID detection rules. Project type detection, interface locations, file size limits per language. argument-hint: "[file-or-directory] [--language]" user-invocable: false
SOLID Detection Skill
Project Detection
Detect project type from configuration files:
# Next.js
[ -f "package.json" ] && grep -q '"next"' package.json
# Laravel
[ -f "composer.json" ] && grep -q '"laravel' composer.json
# Swift
[ -f "Package.swift" ] || ls *.xcodeproj
# Go
[ -f "go.mod" ]
# Rust
[ -f "Cargo.toml" ]
# Python
[ -f "pyproject.toml" ] || [ -f "requirements.txt" ]
Language Rules
Next.js / TypeScript
| Rule | Value |
|---|---|
| File limit | 150 lines |
| Interface location | modules/cores/interfaces/ |
| Forbidden | Interfaces in components/, app/ |
Pattern detection:
^(export )?(interface|type) \w+
Laravel / PHP
| Rule | Value |
|---|---|
| File limit | 100 lines |
| Interface location | app/Contracts/ |
| Forbidden | Interfaces outside Contracts |
Pattern detection:
^interface \w+
Swift
| Rule | Value |
|---|---|
| File limit | 150 lines |
| Interface location | Protocols/ |
| Forbidden | Protocols outside Protocols/ |
Pattern detection:
^protocol \w+
Go
| Rule | Value |
|---|---|
| File limit | 100 lines |
| Interface location | internal/interfaces/ |
| Forbidden | Interfaces outside interfaces/ |
Pattern detection:
^type \w+ interface \{
Python
| Rule | Value |
|---|---|
| File limit | 100 lines |
| Interface location | src/interfaces/ |
| Forbidden | ABC outside interfaces/ |
Pattern detection:
class \w+\(.*ABC.*\)
Rust
| Rule | Value |
|---|---|
| File limit | 100 lines |
| Interface location | src/traits/ |
| Forbidden | Traits outside traits/ |
Pattern detection:
^pub trait \w+
Line Counting
Exclude from count:
- Blank lines
- Comments (
//,/* */,#,""") - Import statements (optional)
# TypeScript/Go/Rust/Swift
grep -v '^\s*$\|^\s*//\|^\s*/\*\|^\s*\*' file
# PHP
grep -v '^\s*$\|^\s*//\|^\s*#\|^\s*/\*\|^\s*\*' file
# Python
grep -v '^\s*$\|^\s*#\|^\s*"""' file
Validation Actions
| Severity | Action |
|---|---|
| Interface in wrong location | BLOCK (exit 2) |
| File over limit | WARNING (exit 0) |
| Missing documentation | WARNING |
Environment Variables
Set by detect-project.sh:
SOLID_PROJECT_TYPE=nextjs|laravel|swift|go|rust|python|unknown
SOLID_FILE_LIMIT=100|150
SOLID_INTERFACE_DIR=path/to/interfaces
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon