← Back to Skills Marketplace
468
Downloads
0
Stars
2
Active Installs
2
Versions
Install in OpenClaw
/install nodejs-project-arch
Description
Node.js project architecture standards for AI-assisted development. Enforces file splitting (<400 lines), config externalization, route modularization, and a...
Usage Guidance
This is a coherent, instruction-only architecture guide — it won't itself install code or ask for credentials. However, follow-up considerations before adopting its patterns:
- Review any produced admin endpoint code carefully. Ensure requireAdmin is implemented with robust authentication (not a plain header in production), use TLS, enforce rate limits, CSRF protection, and logging.
- Avoid storing sensitive secrets (admin passwords, API secrets) in a web-served config.json; prefer environment variables or a secrets manager for production. If you must use config files, ensure /api/config never returns secret fields and that backup files are protected.
- Validate and sanitize incoming admin POST data before writing config.json, and consider access controls (IP allowlist, OAuth, or token-based auth) rather than a simple header password.
- Treat hot-reload in production cautiously: it simplifies operations but can enable misconfiguration or privilege escalation if exposed publicly.
- Because the skill is instruction-only, the security risk comes from code you or an agent generate from these instructions — audit generated server/admin code before deploying publicly.
Capability Analysis
Type: OpenClaw Skill
Name: nodejs-project-arch
Version: 1.1.0
The skill bundle provides architectural standards for Node.js projects aimed at optimizing AI context usage, but it explicitly instructs the AI to implement a high-risk administrative 'hot-reload' feature. This feature includes code patterns in SKILL.md and docs/Config-Pattern.md that perform direct, unsanitized filesystem writes (fs.writeFileSync) to a configuration file using user-supplied data (req.body). While the intent appears to be developer convenience, this pattern introduces a significant security vulnerability (Arbitrary File Write/Configuration Injection) and promotes a weak authentication mechanism (x-admin-password header) for sensitive administrative actions.
Capability Assessment
Purpose & Capability
Name/description (AI-friendly Node.js project architecture, file-splitting, config externalization, admin dashboard) match the SKILL.md and reference files. The skill requests no unrelated binaries, env vars, or installs — everything in the docs is coherent with structuring projects and adding an admin UI.
Instruction Scope
Runtime instructions focus on splitting files, externalizing config, and adding admin endpoints (/api/config, /admin/config). These are within scope, but the docs explicitly instruct reading and overwriting ./config.json, backing it up, and exposing a config API. That pattern can accidentally expose secrets (if strip logic is incomplete) or enable unauthenticated config changes if 'requireAdmin' is not implemented securely. The guidance gives the agent broad discretion to create network-accessible admin endpoints and perform file writes — expected for this purpose but security-sensitive.
Install Mechanism
No install spec and no code files executed by the platform — instruction-only. This minimizes immediate filesystem or network risk from the skill package itself.
Credentials
The skill declares no required environment variables or credentials (consistent). However, it recommends storing admin credentials and third-party API keys in config.json (examples show admin.password and thirdParty keys). Storing secrets in a writable JSON served by the app increases the risk of accidental exposure; using environment variables or dedicated secret storage is safer for production.
Persistence & Privilege
Skill metadata does not request always:true or elevated privileges and is user-invocable only. The README claim that the skill "auto-activates" on certain prompts is a behavioral description, not a metadata privilege — metadata indicates normal, non-forced inclusion.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install nodejs-project-arch - After installation, invoke the skill by name or use
/nodejs-project-arch - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
Added AI Dev Quality Suite cross-references
v1.0.0
Initial release: AI-friendly Node.js architecture standards with game/tool/SDK references
Metadata
Frequently Asked Questions
What is Node.js Project Architecture?
Node.js project architecture standards for AI-assisted development. Enforces file splitting (<400 lines), config externalization, route modularization, and a... It is an AI Agent Skill for Claude Code / OpenClaw, with 468 downloads so far.
How do I install Node.js Project Architecture?
Run "/install nodejs-project-arch" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Node.js Project Architecture free?
Yes, Node.js Project Architecture is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Node.js Project Architecture support?
Node.js Project Architecture is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Node.js Project Architecture?
It is built and maintained by abczsl520 (@abczsl520); the current version is v1.1.0.
More Skills