phantomaton-style
v0.0.1
Published
A lightweight style guide plugin for the [Phantomaton](https://github.com/phantomaton-ai/phantomaton) AI framework. Injects token-efficient coding standards into your AI assistant's system prompt.
Downloads
9
Readme
Phantomaton Style 🎭
A lightweight style guide plugin for the Phantomaton AI framework. Injects token-efficient coding standards into your AI assistant's system prompt.
Installation 📦
npm install phantomaton-styleUsage 🛠️
In Phantomaton
Add the style guide to your Phantomaton persona with the install directive:
# My AI Assistant
/install(module:phantomaton-style)
Additional persona details...That's it! Your AI assistant will now adhere to Phantomaton's token-efficient coding style.
Programmatic Usage
If you're building a custom Phantomaton application:
import phantomaton from 'phantomaton';
import style from 'phantomaton-style';
// Initialize container
const container = hierophant();
// Install style plugin
style().install.forEach(extension => container.install(extension));
// Resolve system prompt
const [system] = container.resolve(plugins.system.resolve);
const prompt = system();
console.log(prompt); // Contains the style guideStyle Principles 📐
The Phantomaton Style guide emphasizes:
- Token efficiency
- Minimal cognitive load
- Small files (<100 LOC)
- Single-word variables
- Self-describing code
- Strong encapsulation
- Natural problem-space mapping
For the complete style guide, see GUIDE.md.
How It Works 🧩
This plugin automatically injects our style guidelines into the system prompt, ensuring your AI assistant consistently follows token-efficient coding practices without explicitly being reminded.
Contributing 🦄
We welcome contributions! If you have suggestions for improving our style guide or this plugin, please submit issues or pull requests to the Phantomaton Style GitHub repository.
License 📜
MIT
