leonj1/external-claude-skills/strict-architecture
Claude Code and agent skill by leonj1/external-claude-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Enforces universal strict governance rules (500 lines, 5 funcs, 4 args) and interface-first I/O for Python, Golang, and .NET.
Install
npx vskill@latest install leonj1/external-claude-skills/strict-architectureSKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry/strict-architecture.
Strict Architecture Governance
These rules apply to ALL code in this project, regardless of language.
1. Universal Limits (Non-Negotiable)
These constraints apply to every source file:
- MAX_LINES: 500 lines per file. (Split file if exceeded)
- MAX_FUNCS: 5 public functions/methods per class/struct.
- MAX_ARGS: 4 arguments per function/constructor.
- NO_DEFAULTS: No default argument values allowed.
- NO_ENV_VARS: No reading environment variables inside constructors or methods (pass values in).
2. Implementation Patterns by Language
🐍 Python Implementation
- Interfaces: Use
typing.Protocolfor all dependencies.
``python class IClient(Protocol): def fetch(self) -> dict: ... ``
- Config: Use
@dataclassfor configuration objects if args > 4. - Env Block: Reject
os.environoros.getenvanywhere exceptmain.py.
🐹 Golang Implementation
- Interfaces: Define
type Service interfacefor all dependencies. - Config: Use strict structs for config.
- Env Block: Reject
os.Getenvanywhere exceptmain.go. - Forbidden: Do not use struct pointers for dependencies; use interfaces.
🔷 .NET / C# Implementation
- Interfaces: Use
IInterfaceprefix. - Config: Use
IOptions<T>pattern or simple POCO config objects. - Env Block: Reject
Environment.GetEnvironmentVariableanywhere exceptProgram.cs.
3. Enforcement Checklist
Before saving any file, verify:
- [ ] Is the file < 500 lines?
- [ ] Does the constructor have dependencies passed as Interfaces?
- [ ] Are there 0 calls to env var readers?
- [ ] Are there 0 default arguments?
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/strict-architecture/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/leonj1/external-claude-skills/strict-architecture)