facturacion-electronica-dte-chile
Skill4 starsChanged 4 months agoMITView on GitHub
Diseña, revisa o audita flujos de facturación electrónica DTE en Chile para sistemas propios o integraciones, cubriendo tipos de documento, XSD, CAF/TED, folios, firma, autenticación, envío, estados SII, certificación y seguridad. Úsala cuando una implementación de factura o boleta electrónica deba demostrar validez técnica y separar claramente certificación de producción.
In this repository6 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 49
No declares “aceptado” por validación local, HTTP 200 genérico o ausencia de error.
- Distinctive: line 50
No reutilices folios después de envío/rechazo sin una regla oficial que lo permita.
- Distinctive: line 51
No persistas contraseñas PKCS#12 ni expongas claves privadas a la IA.
- Distinctive: line 52
No mezcles CAF, claves, endpoints o almacenamiento de certificación y producción.
- Distinctive: line 53
No modernices unilateralmente un protocolo legado si el ambiente oficial exige otra forma.
- Distinctive: line 54
No automatices declaraciones o autorizaciones legales que correspondan al representante del contribuyente.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Facturación Electrónica DTE Chile
Última verificación documental: 2026-07-22.
Convierte la emisión electrónica en una máquina de estados verificable. Un XML generado localmente no es un DTE “aceptado”: la validez operacional depende de reglas técnicas, firma, folios, envío y estados oficiales.
La documentación técnica del SII incluye material histórico. Si el ambiente asignado al contribuyente o una instrucción oficial vigente difiere del material documentado aquí, prevalece la instrucción oficial aplicable y debes registrar la diferencia.
Cuándo usarla
- diseñar un emisor propio de facturas o boletas electrónicas;
- revisar XML/XSD, CAF, TED, folios o firma electrónica;
- preparar certificación SII;
- auditar reintentos, estados, almacenamiento de secretos y trazabilidad;
- distinguir “generado”, “firmado”, “enviado” y “aceptado”.
Flujo de trabajo
- Fija entorno y alcance.
certificación | producción, contribuyente, tipos DTE y evidencia oficial disponible. - Modela tipos y estados. Consulta
references/tipos-y-estados.md. - Valida dominio antes de XML. RUT, totales, impuestos, referencias, rangos de folio y reglas del tipo documental.
- Construye y valida XML. Usa schemas oficiales versionados y valida antes de firmar y enviar.
- Gestiona CAF/TED/folios. Verifica CAF, cifra material sensible y reserva folios atómicamente; nunca reutilices un folio consumido.
- Firma fuera de la IA. La clave privada no se entrega al modelo ni a JavaScript no confiable. Verifica la firma después de generarla.
- Autentica y envía. Persistir identificadores de seguimiento y tratar timeouts como estado incierto, no como éxito/fracaso inventado.
- Consulta estado oficial. Sólo una respuesta oficial puede promover a
accepted,accepted_with_repairorejected. - Conserva evidencia. Hashes de XSD, versión de software, XML, validaciones, Track ID/estado y bitácora; excluye secretos.
- Certifica antes de producción. Sigue
references/certificacion-y-seguridad.md.
Salida esperada
Una auditoría por etapa con:
- estado actual;
- evidencia observada;
- requisito técnico/oficial;
- brecha;
- riesgo;
- acción de cierre;
- prueba necesaria para avanzar al estado siguiente.
Guardrails
- No declares “aceptado” por validación local, HTTP 200 genérico o ausencia de error.
- No reutilices folios después de envío/rechazo sin una regla oficial que lo permita.
- No persistas contraseñas PKCS#12 ni expongas claves privadas a la IA.
- No mezcles CAF, claves, endpoints o almacenamiento de certificación y producción.
- No modernices unilateralmente un protocolo legado si el ambiente oficial exige otra forma.
- No automatices declaraciones o autorizaciones legales que correspondan al representante del contribuyente.
Referencias
references/fuentes-oficiales.mdreferences/tipos-y-estados.mdreferences/certificacion-y-seguridad.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

