Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add LeoLin990405/r-analytics-skill --skill stylergit clone --depth 1 https://github.com/LeoLin990405/r-analytics-skillWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/leolin990405/r-analytics-skill/styler)<a href="https://agentmods.dev/skills/leolin990405/r-analytics-skill/styler"><img src="https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/styler/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/leolin990405/r-analytics-skill/styler"><img src="https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/styler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00022 | $0.00964 |
| Opus 5 | $0.00011 | $0.00482 |
| Sonnet 5 | $0.00004 | $0.00193 |
| Haiku 4.5 | $0.00002 | $0.00096 |
Grade A, and why
styler scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 212 lines — stays where its author put it; the contents beside it link to each section on GitHub.
styler
Non-invasive pretty printing of R code.
Basic Usage
library(styler)
# Style a file
style_file("script.R")
# Style a directory
style_dir("R/")
# Style a package
style_pkg()
# Style text
style_text("x=1+2")
Styling Options
# Default tidyverse style
style_file("script.R")
# Custom indentation
style_file("script.R", indent_by = 4)
# Strict mode (more changes)
style_file("script.R", strict = TRUE)
# Dry run (show changes without applying)
style_file("script.R", dry = "on")
Style Guides
# Tidyverse style (default)
style_file("script.R", style = tidyverse_style())
# Custom style
my_style <- tidyverse_style(
indent_by = 4,
strict = FALSE
)
style_file("script.R", style = my_style)
What Styler Changes
# Before
x=1+2
if(x>0){print(x)}
function(a,b,c){a+b+c}
# After
x <- 1 + 2
if (x > 0) {
print(x)
}
function(a, b, c) {
a + b + c
}
Scope Control
# Style specific scope
style_file("script.R", scope = "tokens") # Only tokens
style_file("script.R", scope = "spaces") # Only spacing
style_file("script.R", scope = "indention") # Only indentation
style_file("script.R", scope = "line_breaks") # Only line breaks
# Multiple scopes
style_file("script.R", scope = c("spaces", "tokens"))
Exclusions
# Exclude code blocks
# styler: off
x=1+2
y=3+4
# styler: on
# Exclude single line
x=1+2 # styler: off
IDE Integration
# RStudio
# Addins > Style selection
# Addins > Style active file
# Keyboard shortcut
# Tools > Modify Keyboard Shortcuts
# Search "style"
# VS Code
# Install R extension
# Format document: Shift+Alt+F
CI/CD Integration
# GitHub Actions
# Check if code is styled
style_file("R/", dry = "fail")
# Pre-commit hook
# .pre-commit-config.yaml
# - repo: https://github.com/lorenzwalthert/precommit
# hooks:
# - id: style-files
Custom Transformers
# Create custom style
my_style <- function() {
create_style_guide(
# Transformers
space = list(
spacing_around_op = function(pd) {
# Custom spacing logic
}
),
# Other options
indent_by = 2,
strict = TRUE
)
}
style_file("script.R", style = my_style)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 212 lines · 22 tokens per session scan A 28b7d258280f
styler is a skill published in the GitHub repository LeoLin990405/r-analytics-skill (5 stars, last pushed 5mo ago), licensed MIT. It adds 22 tokens to every session and 964 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
fused-overview
Orientation to what Fused is and when to use it. Use when deciding whether to use Fused for a task, planning a new Fused project, or understanding Fused's capabilities as a remote Python execution platform.
wp-php-architecture
WordPress PHP architecture patterns — repository, service layer, DDD, SOLID, plugin/theme structure, CPT design, and anti-patterns. The definitive reference for professional WordPress PHP development.
python-bio-classes
Build Python classes for Gene/DNA/RNA/Protein records with eq/lt/hash, @property validation, ABCs, and @classmethod parsers (fromfastastring). Use when modeling genes/FASTA/GFF as objects or asked about Python OOP, inheritance, dataclasses.
algo-avl-trees
Implement a self-balancing AVL binary search tree in Python with rotation-based rebalancing (LL/RR/LR/RL) guaranteeing O(log n) insert/delete/search. Use when a user asks to build/implement an AVL tree, keep a sorted index balanced under insert/delete, explain balance factor or tree rotations, or avoid O(n)…
algo-hash-tables-bloom
Implement Python hash tables (chaining, open addressing, rehashing) and Bloom filters for set membership. Use when building a hash table from scratch, resolving hash collisions, sizing a Bloom filter, or checking k-mer/key set membership under memory limits.
algo-linked-lists
Implement singly/doubly linked lists in Python (O(1) head/tail insert, delete, reverse) plus pointer problems like Floyd's cycle detection and merge-sorted-lists. Use for linked-list coding-interview questions.