Agent skill

Temporal Parameter Staleness

by PlamenTSV in PlamenTSV/plamen

Trigger Pattern interval|epoch|period|duration|delay|cooldown|lockperiod|timelock|unbonding|claimdelay|withdrawdelay|maturity - Inject Into Breadth agents, depth-state-trace

MITAuto-check passed

Install Temporal Parameter Staleness

skills CLI
$ npx skills add PlamenTSV/plamen --skill temporal-parameter-staleness -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install PlamenTSV/plamen temporal-parameter-staleness --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/PlamenTSV/plamen.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agents/skills/solana/temporal-parameter-staleness .claude/skills/temporal-parameter-staleness && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
temporal-parameter-staleness
GitHub stars
303
Token cost
~2.9k tokens
SKILL.md length
1,195 words
Files
1
Skills in repo
87
Repo updated
First seen
Licence
MIT

At a glance

Trigger Pattern interval|epoch|period|duration|delay|cooldown|lockperiod|timelock|unbonding|claimdelay|withdrawdelay|maturity - Inject Into Breadth agents, depth-state-trace

  • Works in 5 steps: Enumerate Multi-Step Operations → Identify Cached Parameters → Model Staleness Impact → …
  • Depth-state-trace
  • SKILL.md covers Step 1: Enumerate Multi-Step…, Step 2: Identify Cached…, Step 3: Model Staleness Impact and Step 3b: Update Source Audit, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Temporal Parameter Staleness is an agent skill from PlamenTSV/plamen. Trigger Pattern interval|epoch|period|duration|delay|cooldown|lockperiod|timelock|unbonding|claimdelay|withdrawdelay|maturity - Inject Into Breadth agents, depth-state-trace

Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Solana. The repository describes itself as: Autonomous Web3 security audit agent for Claude Code. The licence is MIT.

When your agent uses it

  • Depth-state-trace

Example prompts

  • “/temporal-parameter-staleness”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Enumerate Multi-Step Operations
  2. Identify Cached Parameters
  3. Model Staleness Impact
  4. Retroactive Application Analysis
  5. Assess Severity

What it can do on your machine

Read from SKILL.md and the folder at commit 795962b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Temporal Parameter Staleness loads about 2.9k tokens when it runs. Until then it costs about 51 tokens; SKILL.md has 1,195 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~51
When it runs · the whole SKILL.md, loaded when a task matches
~2.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from PlamenTSV/plamen at commit 795962b, republished under its MIT licence (© PlamenTSV). 1,195 words, ~2,876 tokens.

Download SKILL.mdSave it as .claude/skills/temporal-parameter-staleness/SKILL.md (or your agent's skills folder).
name
temporal-parameter-staleness
description
Trigger Pattern interval|epoch|period|duration|delay|cooldown|lock_period|timelock|unbonding|claim_delay|withdraw_delay|maturity - Inject Into Breadth agents, depth-state-trace

TEMPORAL_PARAMETER_STALENESS Skill (Solana)

Trigger Pattern: interval|epoch|period|duration|delay|cooldown|lock_period|timelock|unbonding|claim_delay|withdraw_delay|maturity Inject Into: Breadth agents, depth-state-trace Finding prefix: [TPS-N] Rules referenced: R2, R8, R10, R13, R14

Cached parameters in multi-step operations become stale when authority changes them mid-operation. On Solana, timing has unique properties: 400ms slot time, Clock sysvar shared across all instructions in a transaction, Solana epoch boundaries (~2-3 days, 432k slots), and leader schedule predictability.


Step 1: Enumerate Multi-Step Operations

Find all operations that span multiple transactions:

OperationStep 1 (Initiate)Wait ConditionStep N (Complete)Clock Source
{op_name}{initiate_ix}(){wait_condition}{complete_ix}()slot / unix_timestamp / epoch

For each multi-step operation:

  • What parameters are read/cached at Step 1 (stored in an account)?
  • What parameters are re-read at Step N?
  • What parameters are used but NOT re-read at Step N?
  • Which clock source is used? (Clock::get()?.unix_timestamp, Clock::get()?.slot, Clock::get()?.epoch)
Solana Clock Semantics
Clock FieldResolutionMonotonicityAccuracyUse Case
slot~400msStrictly increasingExact (validator-produced)Short-duration timing, cooldowns
unix_timestamp~400msMostly increasing (can drift +-1-2s)+/- 1-2 seconds (estimated by validator)Human-readable delays, longer durations
epoch~2-3 days (432k slots)Strictly increasingExactStaking epoch boundaries, long cycles

Critical property: Within a single transaction, ALL instructions see the same Clock values. Unlike EVM where multi-block operations have timing variation per block, a Solana transaction's instructions share identical timing. Multi-step timing attacks require separate transactions.


Step 2: Identify Cached Parameters

For each parameter used across steps:

ParameterAccount Stored InRead At StepCached in User Account?Authority-Changeable?Re-Validated At Completion?
{param}{config_account}initiate()YES/NOYES/NO (which authority)YES/NO

Solana caching patterns:

  • Config account cache: User's request account stores a snapshot of config params at initiation time (e.g., request.fee_rate = config.fee_rate)
  • Inline cache: Parameter copied into instruction data or user PDA during Step 1
  • Re-read pattern: Step N re-reads from the config/global account (no staleness possible for that param)
  • Epoch snapshot: Protocol snapshots state at epoch boundary, uses snapshot until next epoch

Red flags: Parameter is cached in a user account at Step 1 AND authority can change the source account AND Step N does NOT re-read from source.


Step 3: Model Staleness Impact

For each cached parameter that can become stale:

Scenario A: Parameter INCREASES between steps
1. User initiates at Step 1 - user PDA stores param = X (read from config account)
2. Authority updates config account: param = X + delta
3. User completes at Step N - uses cached X from user PDA
4. Impact: {what happens with stale value X when current is X + delta}

Scenario B: Parameter DECREASES between steps
1. User initiates at Step 1 - user PDA stores param = X
2. Authority updates config account: param = X - delta
3. User completes at Step N - uses cached X
4. Impact: {what happens with stale value X when current is X - delta}

BOTH directions are mandatory - increase and decrease often have different impacts.

Solana-Specific Staleness Vectors
VectorDescriptionSeverity Modifier
Epoch boundary crossingOperation initiated in epoch N, completed in epoch N+1. Staking yields, validator rewards, inflation rate change at epoch boundary.Higher if protocol depends on epoch-specific rates
Slot leader timingLeader schedule known ~2 epochs ahead. Authority can time parameter changes to specific slots with high precision.Increases likelihood for timing-sensitive parameters
Same-tx guaranteeWithin one tx, Clock is constant. Cannot have intra-tx staleness. Multi-instruction composition is safe from timing drift.Reduces severity for single-tx operations
Clock driftunix_timestamp can drift +-1-2s from wall clock. If protocol uses tight timestamp comparisons (<5s), drift can cause unexpected behavior.Medium if tight comparisons used

Step 3b: Update Source Audit

For each parameter updated from an external source (oracle account, other program's state):

  • Is the source the correct representation of what this parameter tracks?
  • Is the source account ownership validated? (Solana-specific: can a fake account be substituted?)
  • Should this parameter be fixed for a period (e.g., per epoch, per cycle) rather than continuously refreshed?
  • Which instructions update it? Which instructions SHOULD update it? Any mismatch?
  • Is there a refresh or crank instruction? If yes, who calls it and when? Can staleness occur if the crank is not called?

Step 4: Retroactive Application Analysis

For fee/rate parameters that apply to existing state:

ParameterStored InApplies ToRetroactive?Impact
{fee_param}{config PDA}{what it affects}YES/NO{if retroactive: who is harmed}

Solana retroactive patterns:

  • Global config update: Authority changes fee_bps in a global config account. All pending claims calculated at completion time using new rate - retroactively changes expected returns.
  • Epoch-based rate: Protocol sets rate per epoch. Users who entered mid-epoch may have their partial-epoch calculation affected by next-epoch rate change.
  • Account closure incentive: If close_fee changes, users with pending close requests pay different amount than expected.

Rule 2 direction check: Can the authority's parameter change make a user-facing instruction behave unexpectedly? (e.g., setting cooldown_slots = 0 removes timing protection, setting max_deviation = 0 disables oracle bounds). Does the change retroactively affect users in active positions?


Show full SKILL.md (494 more words)Show less

Step 5: Assess Severity

For each staleness issue:

  • Who is affected? (single user, all users with pending operations, protocol)
  • Is the impact bounded? (capped by fee range, max delay, etc.)
  • Can it be exploited intentionally? (authority front-running via leader schedule knowledge)
  • Is there a recovery path? (re-initiate, cancel instruction, admin override)
  • Slot-level precision: Given Solana's ~400ms slots and predictable leader schedule, how precisely can an attacker time the exploitation?
Severity Assessment (Rule 10 - Worst-State)

Use worst realistic operational state, not current on-chain snapshot:

Severity assessed at: pending_claims=MAX_USERS, fee_delta=MAX_FEE-MIN_FEE, tvl=$XXM
Rationale: Protocol designed for up to {N} concurrent pending operations per documentation

Key Questions (must answer all)

  1. What multi-step operations exist? (request/claim, stake/cooldown/unstake, propose/vote/execute)
  2. For each cached parameter: can authority change it between steps?
  3. What happens if a delay DECREASES after initiation? (users locked longer than necessary vs original expectation)
  4. What happens if a delay INCREASES after initiation? (users can claim too early relative to new policy)
  5. Are fees applied retroactively to existing positions or only to new ones?
  6. Is there a maximum parameter range that bounds the staleness impact?
  7. Solana-specific: Does the protocol use slot or unix_timestamp for timing? If unix_timestamp, is the +-1-2s drift handled?
  8. Solana-specific: Do any operations span Solana epoch boundaries? If so, what changes at the boundary?
  9. Solana-specific: Is there a crank/refresh instruction? What happens if it is never called?

Common False Positives

  • Immutable config: If the config account has no update instruction or authority is revoked, no staleness
  • Bounded ranges: If min/max bounds limit the change magnitude (enforced on-chain), impact may be Low
  • User can cancel: If users can cancel pending operations and re-initiate with new parameters, reduced severity
  • Timelock protection: If parameter changes require a Clockwork/Squads timelock, users have time to react
  • Same-transaction operations: Operations that complete within a single transaction cannot have Clock staleness between steps
  • Re-read at completion: If Step N re-reads the parameter from the source config account (not a cached copy), no staleness for that parameter

Instantiation Parameters

{CONTRACTS}           - Programs to analyze
{MULTI_STEP_OPS}      - Identified multi-step operations
{CACHED_PARAMS}       - Parameters cached at initiation (stored in user PDAs/accounts)
{AUTHORITY_PARAMS}    - Authority-changeable parameters
{DELAY_PARAMS}        - Delay/cooldown parameters (in slots, timestamps, or epochs)
{FEE_PARAMS}          - Fee/rate parameters that may apply retroactively
{CLOCK_SOURCE}        - Clock field used (slot/unix_timestamp/epoch)

Output Schema

FieldRequiredDescription
multi_step_opsyesList of multi-step operations found
cached_paramsyesParameters cached across steps (stored in which account)
staleness_vectorsyesHow cached params can become stale
retroactive_feesyesFees applied retroactively
clock_source_audityesWhich Clock field is used and whether appropriate
epoch_boundary_effectsyesOperations spanning epoch boundaries
findingyesCONFIRMED / REFUTED / CONTESTED
evidenceyesCode locations with line numbers
step_executionyesStatus for each step

Step Execution Checklist (MANDATORY)

StepRequiredCompleted?Notes
1. Enumerate Multi-Step OperationsYES
2. Identify Cached ParametersYES
3. Model Staleness Impact (both directions)YES
3b. Update Source AuditYES
4. Retroactive Application AnalysisYES
5. Assess SeverityYES
Cross-Reference Markers

After Step 2: If cached parameters are authority-changeable -> MUST complete Step 3 with BOTH increase and decrease scenarios.

After Step 4: Cross-reference with SEMI_TRUSTED_ROLES (Solana version) for authority functions that change these parameters.

After Step 3: If protocol uses unix_timestamp for comparisons tighter than 5 seconds -> FLAG clock drift concern.

After Step 1: If any operation spans Solana epoch boundaries -> cross-reference with staking/inflation rate changes.

© PlamenTSV, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in agents/skills/solana/temporal-parameter-staleness of PlamenTSV/plamen.

Open the folder on GitHubat commit 795962b

Compare with similar skills

Temporal Parameter Staleness next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Temporal Parameter Staleness compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Temporal Parameter Staleness this skillPlamenTSV/plamen303—~2.9kAutomated safety check: PassMIT
Minara Crypto Trading and WalletMinara-AI/minara-skills3581 repos~5.7kAutomated safety check: PassNone
NEAR Intents Swap Integrationinternet-court/internet-court-skill6.4k2 repos~939Automated safety check: PassCustom licence
Solana Devsolana-foundation/solana-dev-skill574—~3.8kAutomated safety check: PassMIT
Meme Coin Security Auditawarexone/Agentic-Bug-Hunter5.3k1 repos~2.4kAutomated safety check: PassMIT
Swapper Depositswapperfinance/swapper-toolkit852—~1.8kAutomated safety check: PassMIT

Similar skills

  • Minara Crypto Trading and Wallet

    Minara-AI/minara-skills

    Drives the Minara CLI for crypto swaps, perps, limit orders, wallet transfers, deposits and withdrawals, plus AI market analysis.

    358 GitHub starsUsed in 1 repo~5.7k tokens
    Business, Finance & HRAuto-check passed
  • NEAR Intents Swap Integration

    internet-court/internet-court-skill

    Builds cross-chain token swaps and bridge flows with the NEAR Intents 1Click API: quotes, deposit addresses, per-chain deposits and status polling.

    6.4k GitHub starsUsed in 2 repos~939 tokens
    Backend & APIsAuto-check passed
  • Solana Dev

    solana-foundation/solana-dev-skill

    A skill your agent uses when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana program", "fuzz my…

    574 GitHub stars~3.8k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Meme Coin Security Audit

    awarexone/Agentic-Bug-Hunter

    Screens EVM and Solana meme coins for rug pull signs such as hidden mint, honeypot logic and fee tricks, starting with fast kill signals before any code review.

    5.3k GitHub starsUsed in 1 repo~2.4k tokens
    SecurityAuto-check passed
  • Swapper Deposit

    swapperfinance/swapper-toolkit

    Deposit and bridge funds into a wallet or protocol using Swapper Finance.

    852 GitHub stars~1.8k tokensUpdated 6 mo ago
    Business, Finance & HRAuto-check passed
  • PNP Prediction Markets on Solana

    internet-court/internet-court-skill

    Creates, trades and settles permissionless prediction markets on Solana with any SPL token as collateral, including social-media and custom-oracle markets.

    6.4k GitHub stars~7.5k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check: notes

More from PlamenTSV/plamen

All 87 skills in this repo
  • Audit Prep

    PlamenTSV/plamen

    Prepare Solidity projects for a security audit — test coverage, test quality, NatSpec docs, code hygiene, dependency health, best-practice enforcement, deployment readiness, and project…

    303 GitHub stars~3.7k tokensUpdated 12 days ago
    Auto-check passed
  • Verification Protocol

    PlamenTSV/plamen

    Trigger Pattern Always (used by all verifier agents) - Inject Into security-verifier agents (Phase 5)

    303 GitHub stars~3.5k tokensUpdated 12 days ago
    Auto-check passed
  • Ability Analysis

    PlamenTSV/plamen

    Trigger Pattern Always (Aptos Move) - foundational security check - Inject Into Breadth agents, depth agents

    303 GitHub stars~3.3k tokensUpdated 12 days ago
    Auto-check passed
  • Ability Analysis

    PlamenTSV/plamen

    Trigger Pattern Always (Sui Move) -- foundational security check - Inject Into Breadth agents, depth agents

    303 GitHub stars~3.2k tokensUpdated 12 days ago
    Auto-check passed
  • Account Lifecycle

    PlamenTSV/plamen

    Trigger Pattern ACCOUNTCLOSING flag detected (close/CloseAccount usage) - Inject Into Breadth agents, depth agents

    303 GitHub stars~1.2k tokensUpdated 12 days ago
    Auto-check passed
  • Account Validation

    PlamenTSV/plamen

    Trigger Pattern Always required for Solana audits - Inject Into Breadth agents, depth agents

    303 GitHub stars~1.7k tokensUpdated 12 days ago
    Auto-check passed

Works with

Questions about Temporal Parameter Staleness

What does Temporal Parameter Staleness do?

Trigger Pattern interval|epoch|period|duration|delay|cooldown|lockperiod|timelock|unbonding|claimdelay|withdrawdelay|maturity - Inject Into Breadth agents, depth-state-trace. Temporal Parameter Staleness is an agent skill from PlamenTSV/plamen.

When should I use Temporal Parameter Staleness?

Temporal Parameter Staleness fits situations like: depth-state-trace.

How do I install Temporal Parameter Staleness in Claude Code?

Run `npx skills add PlamenTSV/plamen --skill temporal-parameter-staleness -a claude-code`. Or copy the skill folder (agents/skills/solana/temporal-parameter-staleness in PlamenTSV/plamen) into .claude/skills/temporal-parameter-staleness in your project. Claude Code loads it when a task matches its description.

How do I install Temporal Parameter Staleness in Codex?

Run `npx skills add PlamenTSV/plamen --skill temporal-parameter-staleness -a codex`. Or copy the skill folder (agents/skills/solana/temporal-parameter-staleness in PlamenTSV/plamen) into .agents/skills/temporal-parameter-staleness in your project. Codex loads it when a task matches its description.

Can I use Temporal Parameter Staleness in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PlamenTSV/plamen --skill temporal-parameter-staleness -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/temporal-parameter-staleness, .gemini/skills/temporal-parameter-staleness, .github/skills/temporal-parameter-staleness and .opencode/skills/temporal-parameter-staleness in your project.

What does Temporal Parameter Staleness need to run?

SKILL.md names no scripts, command-line tools or credentials: Temporal Parameter Staleness is instructions for the agent only.

Does Temporal Parameter Staleness access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Temporal Parameter Staleness safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Temporal Parameter Staleness use?

Temporal Parameter Staleness is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Temporal Parameter Staleness use?

About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Temporal Parameter Staleness?

Skills that share tags, products or a category with Temporal Parameter Staleness: Minara Crypto Trading and Wallet (Minara-AI/minara-skills, 358 stars), NEAR Intents Swap Integration (internet-court/internet-court-skill, 6.4k stars), Solana Dev (solana-foundation/solana-dev-skill, 574 stars) and Meme Coin Security Audit (awarexone/Agentic-Bug-Hunter, 5.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Temporal Parameter Staleness?

PlamenTSV (a GitHub user) maintains it in PlamenTSV/plamen, which has 303 GitHub stars. The repository holds 87 skills in this directory. The repository was last updated on September 26, 2026.

Source: PlamenTSV/plamen on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.