Hpc Petsc logo

Hpc Petsc

Organization
SciMate-AI
hpc-petsc

Build, review, debug, and tune PETSc-based solver workflows. Use when working with PETSc `Vec`, `Mat`, `KSP`, `PC`, `SNES`, `TS`, options-database tuning, MPI-distributed assembly, external package integration, or PETSc build and runtime failures.

Overview

PublisherSciMate-AI
RepositoryHPC-Skills
Skill namehpc-petsc
Stars
97
Forks
10
Bundled files
16
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 16 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by SciMate-AI on GitHub. Read the source before you install it.

Installation

Install the Hpc Petsc AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/SciMate-AI/HPC-Skills/tree/main/skills/hpc-petsc
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SciMate-AI/HPC-Skills.git /tmp/HPC-Skills
mkdir -p .claude/skills
cp -r /tmp/HPC-Skills/skills/hpc-petsc .claude/skills/hpc-petsc
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Hpc Petsc in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Hpc Petsc on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Hpc Petsc is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

HPC PETSc

Treat PETSc as a layered solver toolkit. Start from the highest-level object that matches the mathematical problem and only drop lower when there is a clear reason.

Start

  1. Read references/solver-stack-and-object-model.md before creating or repairing a PETSc-based solve path.
  2. Read references/ksp-and-pc-matrix.md when selecting Krylov methods, direct solves, or preconditioner families.
  3. Read references/snes-and-ts-patterns.md when the application is nonlinear or time-dependent.
  4. Read references/options-and-ksp-snes-playbook.md when translating runtime options into code or debugging prefix handling.
  5. Read references/runtime-option-matrix.md when selecting monitors, residual diagnostics, or common options-database switches.
  6. Read references/dm-and-discretization-playbook.md when DM, nullspaces, multigrid layout, or field decomposition matter.
  7. Read references/external-backend-matrix.md when deciding whether to route through HYPRE, direct solvers, or matrix-free paths.
  8. Read references/build-and-integration.md when configuring PETSc, enabling external packages, or integrating PETSc into another codebase.
  9. Read references/parallel-and-runtime-debugging.md when a distributed run shows assembly, ownership, convergence, or monitoring problems.
  10. Read references/error-recovery.md when configure, setup, or solve phases fail.

Work sequence

  1. Classify the problem first:
    • linear system -> KSP
    • nonlinear residual -> SNES
    • time-dependent problem -> TS
  2. Choose the data model before tuning the solver:
    • Vec for distributed unknowns
    • Mat or matrix-free operator for the linearization
    • DM when mesh, hierarchy, or field layout must drive assembly and coarsening
  3. Get a robust baseline solve working before tuning for scale.
  4. Move configuration into the options database whenever practical so runs stay inspectable and reproducible.
  5. Read convergence reason and monitor output before changing algorithms.

Guardrails

  • Do not hand-roll nonlinear or time-stepping logic that SNES or TS already manages unless the application truly needs it.
  • Do not tune preconditioners before checking operator correctness, boundary conditions, and assembly completion.
  • Do not mix compiler, MPI, and external solver stacks casually across PETSc and the host application.
  • Do not treat options prefixes or convergence reasons as optional diagnostics.

Additional References

Load these on demand:

  • references/ksp-and-pc-matrix.md for operator-class to solver-family mapping
  • references/snes-and-ts-patterns.md for nonlinear and transient workflow design
  • references/runtime-option-matrix.md for monitor, logging, and option-database baselines
  • references/dm-and-discretization-playbook.md for DMDA, DMPlex, field splits, and hierarchy-aware setup
  • references/external-backend-matrix.md for HYPRE, direct-solver, and matrix-free integration tradeoffs
  • references/build-and-integration.md for external package wiring such as HYPRE or direct-solver backends
  • references/parallel-and-runtime-debugging.md for ownership ranges, assembly ordering, monitors, and distributed diagnostics
  • references/error-pattern-dictionary.md for fast matching of common PETSc failure classes

Reusable Templates

Use assets/templates/ when a concrete starting point is faster than rebuilding the solve path from scratch, especially:

  • ksp_poisson_minimal.c
  • petsc4py_ksp_minimal.py
  • petsc_build_example.sh
  • petsc_ksp_slurm.sh

Outputs

Summarize:

  • problem class and chosen PETSc layer
  • matrix or operator strategy
  • solver and preconditioner baseline
  • runtime options or code-path decisions
  • the exact failure phase if the workflow is being repaired

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Hpc Petsc AI skill do?

Build, review, debug, and tune PETSc-based solver workflows. Use when working with PETSc `Vec`, `Mat`, `KSP`, `PC`, `SNES`, `TS`, options-database tuning, MPI-distributed assembly, external package integration, or PETSc build and runtime failures.

Why use Hpc Petsc on TypingMind?

Because you install it once and use it with any model. Hpc Petsc is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Hpc Petsc in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/SciMate-AI/HPC-Skills/tree/main/skills/hpc-petsc. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Hpc Petsc?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Hpc Petsc?

As many as you like. As long as a model supports skills, you can use Hpc Petsc with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Hpc Petsc AI skill free?

Yes. It is published on GitHub by SciMate-AI under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇