Agent skill

Condition Setup

by PINA-org in PINA-org/PINA

Set up conditions for PINA problems. An agent skill from PINA-org/PINA.

MITAuto-check passedData & Analytics

Install Condition Setup

skills CLI
$ npx skills add PINA-org/PINA --skill condition-setup -a claude-code

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

GitHub CLI
$ gh skill install PINA-org/PINA condition-setup --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/PINA-org/PINA.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.opencode/skills/condition-setup .claude/skills/condition-setup && 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
condition-setup
GitHub stars
797
Token cost
~1k tokens
SKILL.md length
281 words
Files
1
Skills in repo
10
Repo updated
First seen
Licence
MIT

At a glance

Set up conditions for PINA problems. An agent skill from PINA-org/PINA.

  • Works in 4 steps: Determine the condition type → Data types (data-driven only) → Build conditions → …
  • Tasks that involve Forecasting and time series
  • SKILL.md covers Step 1 — Determine the…, Step 2 — Data types…, Step 3 — Build conditions and Step 4 — Integrate with the…, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Condition Setup is an agent skill from PINA-org/PINA. Set up conditions for PINA problems. Covers data types (LabelTensor, Graph, PyG Data), time series conditions, binding equations to domains, and data-driven input→target mapping.

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: opencode, codex, claude

It sits in Data & Analytics, covering Forecasting and time series and Deep learning. It works with PyTorch. The repository describes itself as: Physics-Informed Neural networks for Advanced modeling. The licence is MIT.

When your agent uses it

  • Tasks that involve Forecasting and time series
  • Tasks that involve Deep learning

Example prompts

  • “/condition-setup”

Requirements

  • Python 3
  • Compatibility (from SKILL.md): opencode, codex, claude

Workflow steps

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

  1. Determine the condition type
  2. Data types (data-driven only)
  3. Build conditions
  4. Integrate with the problem class

What it can do on your machine

Read from SKILL.md and the folder at commit 0cd8afb. 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 (its code samples are python).

    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.

  • Compatibility

    opencode, codex, claude

    From compatibility in the SKILL.md frontmatter.

Context cost

Condition Setup loads about 1k tokens when it runs. Until then it costs about 49 tokens; SKILL.md has 281 words of instructions outside code blocks.

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

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 PINA-org/PINA at commit 0cd8afb, republished under its MIT licence (© PINA-org). 281 words, ~1,049 tokens.

Download SKILL.mdSave it as .claude/skills/condition-setup/SKILL.md (or your agent's skills folder).
name
condition-setup
description
Set up conditions for PINA problems. Covers data types (LabelTensor, Graph, PyG Data), time series conditions, binding equations to domains, and data-driven input→target mapping.
compatibility
opencode, codex, claude
license
MIT
metadata.audience
users
metadata.workflow
problem-creation

Set Up Conditions for a PINA Problem

[!IMPORTANT] Read RULES.md before using this skill — it applies to all skills. This is a sub-skill of create-problem. Load the entry-point skill first.

Use this skill to define Condition objects that bind data, equations, or time-series windows to the problem.

Step 1 — Determine the condition type

Three kinds of conditions exist in PINA:

KindWhen to use
Physics-on-domainPDE/ODE residual on a sampled domain
Data-drivenInput→target mapping (supervised)
Time seriesRolling-window forecasting

Step 2 — Data types (data-driven only)

If the problem is data-driven, ask:

What data type are you using?

Available data types for Condition(input=..., target=...):

  • LabelTensor / torch.Tensor — standard tensor data (most common)
  • Graph — PINA's built-in graph structure (from pina import Graph)
  • Data — PyTorch Geometric Data object (from torch_geometric.data import Data)

All three types are accepted directly as input/target.

Step 3 — Build conditions

Physics-on-domain

Conditions map domain names (sampled later via discretise_domain) or explicit point tensors to equations:

python
from pina import Condition

# Option 1: reference a domain by name (sampled later)
conditions = {
    "boundary": Condition(domain="boundary", equation=FixedValue(0.0)),
    "interior": Condition(domain="D", equation=Equation(my_pde)),
}

# Option 2: provide explicit points
conditions = {
    "data_pde": Condition(input=points_tensor, equation=Equation(my_pde)),
}
Data-driven (supervised)
python
conditions = {
    "data": Condition(input=input_tensor, target=target_tensor),
}
Time series forecasting

If the user has time series data, ask whether they want standard supervised or time-series conditions:

python
from pina import Condition

# Standard supervised
Condition(input=ts_tensor, target=target_tensor)

# Time series (input is 3D: [batch, n_windows, features])
Condition(
    input=ts_tensor,
    n_windows=10,
    unroll_length=5,
    randomize=True,
)

# Graph time series
Condition(
    input=graph_ts_data,
    n_windows=10,
    unroll_length=5,
    key="some_key",
)

Parameters:

  • n_windows — number of rolling windows
  • unroll_length — prediction horizon per window
  • randomize — shuffle window order
  • key — key for graph time series data

Step 4 — Integrate with the problem class

Conditions become a class-level dict on the problem:

python
class MyProblem(SpatialProblem):
    output_variables = ["u"]
    spatial_domain = CartesianDomain({"x": [0, 1]})

    domains = {
        "D": spatial_domain,
        "boundary": spatial_domain.partial(),
    }

    conditions = {
        "boundary": Condition(domain="boundary", equation=FixedValue(0.0)),
        "D": Condition(domain="D", equation=Equation(my_pde)),
    }

Checklist

  • For data-driven: confirmed data type (LabelTensor, torch.Tensor, Graph, or PyG Data)
  • For data-driven: input_variables is a list[str] naming the inputs
  • For time series: n_windows, unroll_length, and optional key are set correctly
  • Each Condition uses valid keyword arguments:
    • Condition(domain=..., equation=...) for physics-on-domain
    • Condition(input=..., equation=...) for physics-on-points
    • Condition(input=..., target=...) for data-driven
    • Condition(input=..., n_windows=..., unroll_length=...) for time series
  • domains dict has an entry for every domain name used in conditions

© PINA-org, 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 .opencode/skills/condition-setup of PINA-org/PINA.

Open the folder on GitHubat commit 0cd8afb

Compare with similar skills

Condition Setup 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.

Condition Setup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Condition Setup this skillPINA-org/PINA797—~1kAutomated safety check: PassMIT
Gitnexus Refresh On StaleML4ITS/TimeVQVAE166—~264Automated safety check: PassMIT
Uv Pypi PublishML4ITS/TimeVQVAE166—~178Automated safety check: PassMIT
Physicsnemo DiscoverNVIDIA/skills3.5k—~1.8kAutomated safety check: PassApache-2.0
ML EngineerRightNow-AI/openfang18k—~987Automated safety check: PassApache-2.0
ML Model Trainingsecondsky/claude-skills2271 repos~1.7kAutomated safety check: PassMIT

Similar skills

  • Refresh GitNexus indexing and regenerate local GitNexus skills when repository status is stale.

    166 GitHub stars~264 tokensUpdated 7 mo ago
    AI & LLM EngineeringAuto-check passed
  • Uv Pypi Publish

    ML4ITS/TimeVQVAE

    Publish a Python package to PyPI using uv with credentials loaded from a local .secrets file.

    166 GitHub stars~178 tokensUpdated 7 mo ago
    AI & LLM EngineeringAuto-check passed
  • Official

    Official NVIDIA-authored guidance for navigating PhysicsNeMo — pick the model, datapipe, or example for a SciML/AI4Science task (surrogates, forecasting, downscaling, physics-informed, inverse…

    3.5k GitHub stars~1.8k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • ML Engineer

    RightNow-AI/openfang

    Machine learning engineer expert for PyTorch, scikit-learn, model evaluation, and MLOps

    18k GitHub stars~987 tokensUpdated 3 mo ago
    Data & AnalyticsAuto-check passed
  • ML Model Training

    secondsky/claude-skills

    Train ML models with scikit-learn, PyTorch, TensorFlow. An agent skill from secondsky/claude-skills.

    227 GitHub starsUsed in 1 repo~1.7k tokens
    Data & AnalyticsAuto-check passed
  • Scikit Learn Machine Learning

    jaechang-hits/SciAgent-Skills

    Classical ML in Python: classification, regression, clustering, dim reduction, evaluation, tuning, preprocessing pipelines.

    370 GitHub starsUsed in 1 repo~4k tokens
    Data & AnalyticsAuto-check passed

More from PINA-org/PINA

All 10 skills in this repo
  • Create Skill

    PINA-org/PINA

    Create, modify, and improve PINA skills. An agent skill from PINA-org/PINA.

    797 GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed
  • Pina Workflow

    PINA-org/PINA

    Orchestrates a complete session from problem definition through trained solver.

    797 GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Select Model

    PINA-org/PINA

    Guides users through selecting, configuring, or creating a PyTorch model for a PINA problem.

    797 GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Select Solver

    PINA-org/PINA

    Guides users through selecting the right PINA solver for their problem, or creating a custom solver when no built-in fits.

    797 GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • Select Trainer

    PINA-org/PINA

    Guides users through configuring the PINA Trainer for solver training, including batching strategy, data splitting, and Lightning options.

    797 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Skill Sync Checker

    PINA-org/PINA

    Audits SKILL.md files in this repo's skills directory for references to functions, classes, or modules (mentioned by name in prose, e.g.

    797 GitHub stars~1.5k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Condition Setup

What does Condition Setup do?

Set up conditions for PINA problems. An agent skill from PINA-org/PINA. Condition Setup is an agent skill from PINA-org/PINA. Set up conditions for PINA problems.

When should I use Condition Setup?

Condition Setup fits situations like: tasks that involve Forecasting and time series; tasks that involve Deep learning.

How do I install Condition Setup in Claude Code?

Run `npx skills add PINA-org/PINA --skill condition-setup -a claude-code`. Or copy the skill folder (.opencode/skills/condition-setup in PINA-org/PINA) into .claude/skills/condition-setup in your project. Claude Code loads it when a task matches its description.

How do I install Condition Setup in Codex?

Run `npx skills add PINA-org/PINA --skill condition-setup -a codex`. Or copy the skill folder (.opencode/skills/condition-setup in PINA-org/PINA) into .agents/skills/condition-setup in your project. Codex loads it when a task matches its description.

Can I use Condition Setup 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 PINA-org/PINA --skill condition-setup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/condition-setup, .gemini/skills/condition-setup, .github/skills/condition-setup and .opencode/skills/condition-setup in your project.

What does Condition Setup need to run?

SKILL.md names no scripts, command-line tools or credentials: Condition Setup is instructions for the agent only. Our summary lists: Python 3. Compatibility (from SKILL.md): opencode, codex, claude.

Does Condition Setup 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 Condition Setup 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 Condition Setup use?

Condition Setup is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Condition Setup use?

About 1k tokens (SKILL.md is roughly 4.2k 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 Condition Setup?

Skills that share tags, products or a category with Condition Setup: Gitnexus Refresh On Stale (ML4ITS/TimeVQVAE, 166 stars), Uv Pypi Publish (ML4ITS/TimeVQVAE, 166 stars), Physicsnemo Discover (NVIDIA/skills, 3.5k stars) and ML Engineer (RightNow-AI/openfang, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Condition Setup?

PINA-org (a GitHub organization) maintains it in PINA-org/PINA, which has 797 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 6, 2026.

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