infrastructure-fonds

Um módulo Python para descobrir e validar fonds, ou conjuntos estáveis de recursos como bibliografias, contactos e catálogos de dados, num espaço de trabalho. Também gere ligações auxiliares para fundos privados e ativos.

In plain words
What is it for?
Descobrir fundos, localizar a pasta de um fundo, validar a sua estrutura, listar fundos públicos e sincronizar ligações simbólicas para fundos privados ou ativos.
Why use it?
Separa recursos arquivados de projetos com código executável e verifica se cada fundo tem a estrutura esperada. Isso reduz erros ao localizar ou expor dados do espaço de trabalho.

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/docxology/template/fonds
Any agent
npx skills add docxology/template --skill fonds
Clone the repo
git clone --depth 1 https://github.com/docxology/template

Made for: Claude Code, Codex.

Per session 175 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,230 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00175 $0.01230
Opus 5 $0.00088 $0.00615
Sonnet 5 $0.00035 $0.00246
Haiku 4.5 $0.00017 $0.00123

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

Security

Grade A, and why

infrastructure-fonds scanned grade A with 0 findings 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 3d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (__init__.py, discovery.py, fonds_info.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

infrastructure/fonds/SKILL.md · 125 lines

How it starts

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

Fonds Module

Discovery, validation, scope, and sidecar symlink sync for the fonds/ workspace — stable resource pools (bibliographies, contacts, datasets), distinct from projects/ (executable code).

Modules

File Exports
__init__.py FondInfo, build_fond_info, discover_fonds, resolve_fond_root, validate_fond_structure
discovery.py discover_fonds, resolve_fond_root, NON_RENDERED_FOND_SUBDIRS, RENDERED_FOND_SUBDIRS
fonds_info.py FondInfo, build_fond_info
validation.py validate_fond_structure
public_scope.py PUBLIC_FOND_NAMES, public_fond_infos, public_fond_names, public_fond_data_paths
linking.py sync_private_fond_links, sync_active_fond_links, private_fonds_root, is_managed_symlink, LIFECYCLE_LINK_DIRS, LinkSyncResult

Discovery and validation

from pathlib import Path
from infrastructure.fonds import discover_fonds, resolve_fond_root, validate_fond_structure, FondInfo

# Discover all valid fonds (skips working/, archive/)
fonds: list[FondInfo] = discover_fonds(Path("."))
for f in fonds:
    print(f.qualified_name, f.fond_type, f.is_valid)

# Resolve by name
path = resolve_fond_root(Path("."), "templates/template_bibliography")
path = resolve_fond_root(Path("."), "template_bibliography")  # bare name

# Validate structure (requires fonds.yaml + data/)
is_valid, message = validate_fond_structure(Path("fonds/templates/template_bibliography"))

FondInfo dataclass

from infrastructure.fonds import FondInfo, build_fond_info

info = build_fond_info(Path("fonds/templates/template_bibliography"))
info.name           # "template_bibliography"
info.fond_type      # "type" from fonds.yaml, or "generic"
info.has_data       # True iff data/ exists
info.is_valid       # True iff has_data
info.qualified_name # "template_bibliography" or "program/name"

Public scope

from infrastructure.fonds.public_scope import (
    PUBLIC_FOND_NAMES,       # ('templates/template_bibliography', ...)
    public_fond_infos,       # list[FondInfo] present in checkout
    public_fond_names,       # list[str] sorted
    public_fond_data_paths,  # list[Path] repo-relative data/ paths for CI scope
)

Read the full file on GitHub · 125 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 125 lines · 175 tokens per session scan A 08aef4a2bd2d

Subscribe to this mod's changes

infrastructure-fonds is a skill published in the GitHub repository docxology/template (19 stars, last pushed 3d ago), licensed Apache-2.0. It adds 175 tokens to every session and 1,230 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

cloudbase-document-database-web-sdk

Use CloudBase document database Web SDK only for confirmed NoSQL collection work. Query, create, update, and delete document data; if the task mentions PostgreSQL / CloudBase PG / app.rdb(), route to postgresql-development instead.

TencentCloudBase/CloudBase-AI-Toolkit · 55 tokens

data-model-creation

Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/SKILL.md.

TencentCloudBase/CloudBase-AI-Toolkit · 68 tokens

backend-development

Backend API design, database architecture, microservices patterns, and test-driven development. Use for designing APIs, database schemas, or backend system architecture.

MoizIbnYousaf/Ai-Agent-Skills · 32 tokens

firebase-cloud-firestore

Use when setting up Firestore, designing schemas, doing CRUD, creating listeners, paginating queries, configuring indexes, enabling offline persistence, or writing security rules.

evanca/flutter-ai-rules · 37 tokens

firebase-database

Use when syncing real-time data, structuring JSON trees, reading/writing, creating listeners, enabling offline persistence, managing presence, sharding, or writing security rules.

evanca/flutter-ai-rules · 38 tokens

mongodb-natural-language-querying

Generate read-only MongoDB queries (find) or aggregation pipelines using natural language, with collection schema context and sample documents. Use this skill whenever the user asks to write, create, or generate MongoDB queries, wants to filter/query/aggregate data in MongoDB, asks "how do I query...", needs help with…

mongodb/agent-skills · 162 tokens