🛡️ Encapsulation

This skill enforces encapsulation in TypeScript by guiding you to hide internal state and expose behavior through validated methods.

QUICK INSTALL
npx playbooks add skill yanko-belov/code-craft --skill encapsulation

About Encapsulation

This skill enforces encapsulation in TypeScript by guiding you to hide internal state and expose behavior through validated methods.

This compact 19-word instruction set is purpose-built for security work in AI coding agents. Install with a single command.

Use Cases

  • Auditing code for OWASP Top 10 vulnerabilities
  • Implementing authentication and authorization patterns
  • Reviewing API security, rate limiting, and input validation
  • Hardening infrastructure and dependency security

Example Prompts

Get started Help me use the Encapsulation skill effectively.

System Prompt (19 words)

This skill enforces encapsulation in TypeScript by guiding you to hide internal state and expose behavior through validated methods.

Frequently Asked Questions

What is Encapsulation?

Encapsulation is a free security skill for AI coding agents. This skill enforces encapsulation in TypeScript by guiding you to hide internal state and expose behavior through validated methods.. It provides a specialized system prompt that configures your agent with security expertise.

How do I use Encapsulation with Claude Code?

Run npx playbooks add skill yanko-belov/code-craft --skill encapsulation in your terminal to install Encapsulation into your Claude Code session. It works immediately after installation.

Which AI coding agents work with Encapsulation?

Encapsulation is compatible with Claude Code, Cursor, GitHub Copilot, Windsurf, OpenClaw, Cline, and any AI agent that supports custom system prompts or .cursorrules files.

Is Encapsulation free to use?

Yes, Encapsulation is completely free and open source. The full source is available on GitHub at https://github.com/yanko-belov/code-craft/tree/main/skills/encapsulation. You only need a subscription to the AI agent you use it with.

Related Skills

Get the best new skills
in your inbox

Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.