Skip to main content

pi-effect

Enforce source-first Effect work in Pi by finding the project's pinned source mirror, hydrating it when needed, and searching it before making Effect API claims. Use when writing, reviewing, refactoring, or debugging code that imports `effect`, `Effect`, `Schema`, `Layer`, `ServiceMap`, `Config`, or any `@effect/*` package.

Informações da origem

Repositório
joelhooks/pi-effect
Última atividade na origem
23 de setembro de 2026 às 19:27
Idioma detectado do SKILL.md
inglês
Estrelas
4
Forks
0

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
pi-effect
description
Enforce source-first Effect work in Pi by finding the project's pinned source mirror, hydrating it when needed, and searching it before making Effect API claims. Use when writing, reviewing, refactoring, or debugging code that imports `effect`, `Effect`, `Schema`, `Layer`, `ServiceMap`, `Config`, or any `@effect/*` package.
# Pi Effect Use this skill for any Effect work. Check the project's source ref first, then use that source before making claims about Effect APIs. ## Required workflow 1. Run `effect_source` with action `status`. It reads the root package plus packages selected by npm, Bun, or pnpm workspace globs. It resolves pnpm `catalog:` entries and skips `.agent-source/`, `.agent-sources/`, and `.agent_sources/` mirrors. 2. Check the expected source ref and warnings. An exact Effect pin resolves to its matching upstream `effect@<version>` tag. A version range can fall back to `main` for v4 or `v3` for v3, but status marks that source as a major-branch fallback, not an exact match. Unresolved aliases such as `latest` cannot choose a source ref. 3. The canonical mirror is `.agent_sources/github.com/Effect-TS/effect/`, with `.agent-source.json` metadata. pi-effect reuses it when the recorded ref and Effect version match. Existing `.agent-sources/effect/` mirrors remain readable as a legacy fallback; no symlink is required. 4. If the matching mirror is missing, run `effect_source` with action `hydrate`. It clones the exact tag or the reported major-branch fallback, writes rat-stack-compatible metadata, and adds the source-mirror paths to `.git/info/exclude`. A stale canonical mirror is left untouched. A stale legacy mirror is preserved while the matching canonical mirror is created beside it. 5. Search the mirror before calling something an Effect best practice: ```text effect_source action=search query="Effect.fn" ``` ## If the `effect_source` tool exists Prefer the tool over hand-rolled commands: - `status` before editing; distinguish an exact pin from a branch fallback - `hydrate` when the matching mirror is absent - `search` for current Effect APIs and patterns; it refuses exact source-version or source-ref mismatches ## What counts as evidence Prefer, in order: 1. Source in `.agent_sources/github.com/Effect-TS/effect/packages/*/src/` 2. Tests and examples in `.agent_sources/github.com/Effect-TS/effect/packages/` 3. Official Effect docs/examples only when source is not enough 4. Existing repo-local patterns only after checking they are not stale For a legacy project, use the selected path reported by `effect_source status`. Do not cite old blog posts, memory, or random snippets as best practice when the source is available.
Ver no GitHub