npm.io
0.1.12 • Published 9h agoCLI

@hasna/styles

Licence
Apache-2.0
Version
0.1.12
Deps
11
Size
2.8 MB
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

@hasna/styles

Style management platform for AI coding agents — profiles, preferences, health checks, and design system enforcement

npm License

Install

npm install -g @hasna/styles

CLI Usage

styles --help
  • styles list
  • styles info <name>
  • styles use <name>
  • styles init
  • styles profile list
  • styles profile create

MCP Server

styles-mcp

28 tools available.

HTTP mode

Shared Streamable HTTP transport for multi-agent sessions (binds localhost only):

styles-mcp --http
# or: MCP_HTTP=1 styles-mcp
# port: --port 8837  >  MCP_HTTP_PORT  >  8837 (default)
  • Health: GET http://127.0.0.1:8837/health
  • MCP: http://127.0.0.1:8837/mcp

Data Directory

Data is stored in ~/.hasna/styles/. Existing ~/.open-styles/ or ~/.styles/ package-owned global state is copied forward on first use without overwriting files already present in ~/.hasna/styles/. Project-local .styles/style.md files are intentionally preserved as project context files.

License

Apache-2.0 -- see LICENSE

Keywords