pinescript
Pine Script
Overview
Provide Pine Script v6 guidance for indicators, strategies, and libraries. Apply non-repainting and performance best practices. Support generating Pine Script via other languages (TypeScript, Python, etc.) by keeping generated output compliant with v6 guidance. Run linting with the bundled script wrapper around pinescript-lint.
Workflow
- Determine script type and version
- Add
//@version=6and chooseindicator(),strategy(), orlibrary().
- Add
- Apply execution model and repainting safeguards
- Use
barstate.isconfirmed, historical offsets, andrequest.security()lookahead guidance.
- Use
- Optimize performance and state
- Prefer
var/varipfor state, limit loops, precompute constants, avoid redundant security calls.
- Prefer
- Generate Pine Script from other languages when needed
- Emit Pine Script v6-compliant output and validate by inspection or TradingView editor diagnostics.
- Lint before delivery (manual Pine Script only)
- Run
node scripts/pinescript_lint.mjs <path>to check formatting and basic issues.
- Run
References
- Pine Script v6 concepts and best practices:
references/pinescript_v6.md - Linting workflow and linter configuration:
references/linting.md
Scripts
- Lint Pine Script files:
scripts/pinescript_lint.mjs - Lint script tests:
scripts/pinescript_lint.test.mjs
More from ajoslin/dot
find-skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
20kimaki-expert
Provide expert support for Kimaki setup, Discord bot wiring, OpenCode session orchestration, slash-command troubleshooting, and automation workflows. Use when users mention Kimaki, kimaki.xyz, Discord-controlled coding agents, or channel-to-project mapping.
18skill-creator
Create new skills, modify and improve existing skills, and measure skill quality for OpenCode agents. Load FIRST before writing any SKILL.md. Use when creating a skill from scratch, editing or optimizing an existing skill, scaffolding skill structure, testing skill quality with evals, improving skill triggering accuracy, or debugging skill issues. Provides required format, naming conventions, progressive disclosure patterns, evaluation workflows, and validation. Use this skill whenever the user mentions making a skill, writing a skill, skill development, skill improvement, or skill debugging, even if they don't explicitly say "skill-creator".
18kimaki-tools
Run common Kimaki project/session operations from OpenCode, especially linking an existing OpenCode session into Discord and Kimaki session listings. Use when users ask to manage Kimaki projects, sessions, or thread mappings from CLI.
18thrifty
Delegate tasks to the cost-effective opencode/glm-5 model. Use when you need inexpensive task execution, simple research, or delegating work that doesn't require the most powerful models.
17index-knowledge
Generate hierarchical AGENTS.md knowledge base for a codebase. Creates root + complexity-scored subdirectory documentation.
17