delegacao-a-subagentes

Guides delegation of sensitive-data tasks to local subagents while keeping confidential data off remote models.

1|Updated Jun 2, 2026
One-click install
npx skills add https://github.com/psiagoleal/ai-coding-agent-profiles --skill delegacao-a-subagentes-psiagoleal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: delegacao-a-subagentes
Source: https://github.com/psiagoleal/ai-coding-agent-profiles/tree/main/skills/delegacao-a-subagentes
Command: npx skills add https://github.com/psiagoleal/ai-coding-agent-profiles --skill delegacao-a-subagentes-psiagoleal

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When an AI agent works with confidential data (PII, credentials, proprietary code), sending raw data to a remote model creates a leak risk. This Skill defines how to delegate sensitive work to a local subagent so the remote model only receives aggregated, sanitized results. ## Core Features & Use Cases - Delegation request template: A four-part structure for writing delegation prompts — concrete task, exact response format, field-by-field prohibition list, and explicit failure behavior. - Delegation boundary rules: Clear tables of what to delegate (aggregation, schema extraction, counting, redaction) and what not to delegate (long reasoning, multi-step chains, non-trivial code). - Local model selection criteria: Requires native tool-calling support, prefers the smallest model passing an acceptance test, and includes field observations on models like qwen2.5:7b and llama3.1:8b. - Use Case: You need counts of customers per plan from a CSV containing CPF numbers. The Skill instructs you to delegate the read-and-aggregate step to a local model with an explicit ban on returning names, CPFs, or emails, so only plano=<nome> qtd=<n> lines leave the machine. ## Quick Start Ask the agent to delegate reading a sensitive CSV to a local subagent, returning only per-plan counts with no personal identifiers in the response.

Frequently Asked Questions about delegacao-a-subagentes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I delegate sensitive data tasks to a local AI model?

Write a delegation request with four parts: the concrete task, the exact response format, an explicit field-by-field prohibition list, and the behavior on failure. The local model reads the sensitive file and returns only aggregated results, so raw data never leaves the machine.

What tasks should I delegate to a local subagent versus a remote model?

Delegate reading and aggregating files with personal data, schema extraction, occurrence counting, and redaction before sending. Do not delegate long reasoning, multi-step chained tasks, or non-trivial code writing, since small local models degrade quickly on those.

Which local models support tool-calling for subagent delegation?

Any local model with native tool-calling support works; verify it before choosing, for example with `ollama show <modelo>` listing tools among capabilities. Field observations note qwen2.5:7b follows explicit sanitization instructions, while llama3.1:8b is more conservative but less stable in protocol.

Does blocking keywords like CPF prevent PII leaks from local models?

No. Literal keyword filters fail because the model rewrites the data without the blocked label and still sends the personal information. PII protection requires pattern-based matching and explicit field-by-field prohibitions in the delegation request.

When should I use a LiteLLM gateway instead of local subagent delegation?

Use the delegacao-openai-compat route when the concern is subscription quota on work already cleared to leave the machine, not confidentiality. Local subagent delegation is the route for data that must never leave the machine at all.