Focus Techniques

A set of techniques for maintaining concentration during software work. It includes timed work-and-break cycles, calendar planning, distraction control, and other ways to structure focused sessions.

In plain words
What is it for?
Use it before or during a coding session to choose a focus method, prepare your workspace, limit distractions, and manage breaks.
Why use it?
It helps when interruptions, low energy, or unclear session structure make it difficult to do sustained work.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/cyperx84/claude-code-plugin-examples/focus-techniques
Any agent
npx skills add cyperx84/claude-code-plugin-examples --skill focus-techniques
Clone the repo
git clone --depth 1 https://github.com/cyperx84/claude-code-plugin-examples

Made for: Claude Code, Codex.

Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,038 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00019 $0.03038
Opus 5 $0.00010 $0.01519
Sonnet 5 $0.00004 $0.00608
Haiku 4.5 $0.00002 $0.00304

Measured 2d ago against content hash e7b0aad2d6ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

Focus Techniques scanned grade B with 1 finding 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 2d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo echo "127.0.0.1 facebook.com" >> /etc/hosts
examples/02-intermediate/productivity-plugin/skills/focus-techniques/SKILL.md · 551 lines

How it starts

The opening of the file, as written. The whole thing — 551 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Focus Techniques

Purpose

Help developers achieve and maintain deep focus through:

  • Proven focus techniques
  • Distraction management strategies
  • Energy optimization
  • Flow state cultivation
  • Sustainable productivity habits

When to Use

Invoke this skill when:

  • Starting a coding session
  • Struggling with distractions
  • Experiencing mental fatigue
  • Planning deep work sessions
  • Optimizing productivity workflow

Instructions

Step 1: Assess Current State

Evaluate:

  1. Energy Level: High, Medium, Low
  2. Distractions: Number and severity
  3. Task Complexity: Simple, Moderate, Complex
  4. Time Available: Short (<1hr), Medium (1-3hrs), Long (>3hrs)

Step 2: Choose Appropriate Technique

Select based on context:

  • Pomodoro: For sustained focus with breaks
  • Time Blocking: For structured days
  • Deep Work: For complex problems
  • Batch Processing: For similar tasks
  • Flow State: For creative work

Step 3: Prepare Environment

Optimize for focus:

  1. Eliminate physical distractions
  2. Close unnecessary apps/tabs
  3. Set communication boundaries
  4. Prepare water/snacks
  5. Ensure comfortable workspace

Step 4: Execute and Monitor

During session:

  1. Start timer/tracker
  2. Single-task (no context switching)
  3. Take scheduled breaks
  4. Monitor energy levels
  5. Adjust as needed

Focus Techniques

1. Pomodoro Technique

Best for: General coding, learning, documentation

Method:

1. Choose a task
2. Set timer for 25 minutes
3. Work with full focus (no distractions)
4. Take 5-minute break
5. After 4 pomodoros, take 15-30 minute break

Implementation:

// Pomodoro Timer
const WORK_DURATION = 25 * 60 * 1000; // 25 minutes
const SHORT_BREAK = 5 * 60 * 1000;    // 5 minutes
const LONG_BREAK = 30 * 60 * 1000;    // 30 minutes

class PomodoroTimer {
  private pomodorosCompleted = 0;

  async startWorkSession(): Promise<void> {
    console.log('🍅 Pomodoro started - Focus for 25 minutes');
    await this.timer(WORK_DURATION);
    this.pomodorosCompleted++;

    if (this.pomodorosCompleted % 4 === 0) {
      console.log('🎉 4 pomodoros done! Take a 30-minute break');
      await this.timer(LONG_BREAK);
    } else {
      console.log('✅ Pomodoro complete! Take a 5-minute break');
      await this.timer(SHORT_BREAK);
    }
  }

  private timer(duration: number): Promise<void> {
    return new Promise(resolve => setTimeout(resolve, duration));
  }
}

Read the full file on GitHub · 551 lines

Changes

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.

  1. 2d ago First seen · 551 lines · 19 tokens per session scan B e7b0aad2d6ad

Subscribe to this mod's changes

Focus Techniques is a skill published in the GitHub repository cyperx84/claude-code-plugin-examples (2 stars, last pushed 10mo ago), licensed MIT. It adds 19 tokens to every session and 3,038 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

biopython

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use…

K-Dense-AI/scientific-agent-skills · 76 tokens

exploratory-data-analysis

Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…

K-Dense-AI/scientific-agent-skills · 83 tokens

arboreto

Infer gene regulatory networks (GRNs) from gene expression data using scalable algorithms (GRNBoost2, GENIE3). Use when analyzing transcriptomics data (bulk RNA-seq, single-cell RNA-seq) to identify transcription factor-target gene relationships and regulatory interactions. Supports distributed computation for…

K-Dense-AI/scientific-agent-skills · 66 tokens

nature-statistics

Audit, revise, or draft manuscript statistical reporting for Nature / high-impact journal submissions. Use when the user asks to check statistical analysis sections, p values, confidence intervals, sample size, biological versus technical replicates, randomization, blinding, multiple-comparison correction, model…

Yuan1z0825/nature-skills · 139 tokens

paper-illustration

Generate publication-quality AI illustrations for academic papers using Gemini image generation. Creates architecture diagrams, method illustrations with Claude-supervised iterative refinement loop. Use when user says "生成图表", "画架构图", "AI绘图", "paper illustration", "generate diagram", or needs visual figures for papers.

wanshuiyin/Auto-claude-code-research-in-sleep · 67 tokens