Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计未展示

ring%3aregulatory-templates-setupRing%3a 监管模板设置

Agent Skill

ring%3aregulatory-templates-setup 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

848

周安装

35

GitHub Stars

180

下载量

277
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ring%3aregulatory-templates-setup(Ring%3a 监管模板设置)
来源仓库:https://github.com/lerianstudio/ring
仓库路径:skills/ring%3Aregulatory-templates-setup
安装命令:
npx skills add https://github.com/lerianstudio/ring --skill ring:regulatory-templates-setup
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/lerianstudio/ring --skill ring:regulatory-templates-setup

简介

ring%3aregulatory-templates-setup 用于查找、检索和筛选相关信息。

  • 它适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词或场景快速定位结果。
  • 可通过 npx skills add 命令从 GitHub 仓库安装,具体实现需查阅原始 README。
  • 安装前建议确认权限、维护状态及是否涉及网络或文件访问。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Regulatory Templates - Initial Setup

Overview

This sub-skill handles the initial setup phase for regulatory template creation, including template selection and context initialization.

Parent skill: regulatory-templates

Output: Complete initial context object with all selections and configurations


Foundational Principle

Setup initializes the foundation - errors here propagate through all 3 gates.

Setup is not "just configuration" - it's critical validation:

  • Template selection: Wrong template = entire workflow on wrong regulatory spec (hours wasted)
  • Context initialization: Incomplete context = gates fail mysteriously downstream
  • Dictionary status check: Skipped check = lost automation, unnecessary interactive validation
  • User awareness: No alert about validation mode = poor UX, blocked progress

Skipping setup steps means:

  • Hard-coded context bypasses validation (typos, wrong versions)
  • Missing values cause gate failures (debugging waste)
  • Silent dictionary check = user unprepared for interactive validation
  • No audit trail of selections (compliance gap)

Setup is the contract between user intent and gate execution. Get it wrong = everything downstream breaks.


When to Use

Called by: regulatory-templates skill at the beginning of the workflow

Purpose: Gather all user selections and initialize the context object that will flow through all gates


NO EXCEPTIONS - Setup Requirements Are Mandatory

Setup requirements have ZERO exceptions. Foundation errors compound through all gates.

Common Pressures You Must Resist

PressureYour ThoughtReality
Ceremony"User said CADOC 4010, skip selection"Validation confirms, prevents typos, initializes full context
Speed"Hard-code context, skip AskUserQuestion"Bypasses validation, loses audit trail, breaks contract
Simplicity"Dictionary check is file I/O ceremony"Check determines validation mode (auto vs interactive 40 min difference)
Efficiency"Skip user alert, they'll see validation later"Poor UX, unprepared user, blocked progress

Setup Requirements (Non-Negotiable)

Template Selection:

  • ✅ REQUIRED: Use AskUserQuestion for authority and template selection
  • ❌ FORBIDDEN: Hard-code based on user message, skip selection dialog
  • Why: Validation confirms correct template, prevents typos, establishes audit trail

Dictionary Status Check:

  • ✅ REQUIRED: Check ~/.claude/docs/regulatory/dictionaries/ for template dictionary
  • ❌ FORBIDDEN: Skip check, assume no dictionary exists
  • Why: Determines validation mode (automatic vs interactive = 40 min time difference)

User Alert:

  • ✅ REQUIRED: Alert user if interactive validation required (no dictionary)
  • ❌ FORBIDDEN: "They'll figure it out in Gate 1"
  • Why: User preparedness, UX, informed consent for 40-min validation process

Complete Context:

  • ✅ REQUIRED: Initialize ALL context fields (authority, template_code, template_name, dictionary_status, documentation_path)
  • ❌ FORBIDDEN: Minimal context, "gates will add details later"
  • Why: Incomplete context causes mysterious gate failures

The Bottom Line

Setup shortcuts = silent failures in all downstream gates.

Setup is foundation. Wrong template selection wastes hours on wrong spec. Missing context breaks gates mysteriously. Skipped checks lose automation.

If tempted to skip setup, ask: Am I willing to debug gate failures from incomplete initialization?


Rationalization Table

ExcuseWhy It's WrongCorrect Response
"User already said CADOC 4010"Validation confirms, prevents typos (4010 vs 4020)Run selection
"Hard-code context is faster"Bypasses validation, loses audit trailUse AskUserQuestion
"Dictionary check is ceremony"Determines 40-min validation mode differenceCheck dictionary
"They'll see validation in Gate 1"Poor UX, unprepared userAlert if interactive
"Just pass minimal context"Incomplete causes mysterious gate failuresInitialize ALL fields
"Setup is just config"Foundation errors compound through 3 gatesSetup is validation

If You Find Yourself Making These Excuses

STOP. You are rationalizing.

Setup appears simple but errors propagate through 4-6 hours of gate execution. Foundation correctness prevents downstream waste.



Severity Calibration

MUST classify setup issues using these severity levels:

SeverityDefinitionExamplesGate Impact
CRITICALBLOCKS workflow progression OR invalidates foundation- Template not in registry- Authority selection invalid- Context initialization failed- Required field missing from contextHARD BLOCK - Cannot proceed to Gate 1
HIGHREQUIRES resolution for accurate gate execution- Dictionary status unknown- Documentation path missing- Template code incorrect- User not alerted about validation modeMUST resolve before Gate 1
MEDIUMSHOULD fix for optimal workflow- Deadline not specified (using default)- Optional context fields missing- Documentation incompleteSHOULD resolve - document if deferred
LOWMinor improvements possible- Context verbosity- Naming improvements- Additional metadataOPTIONAL - note in report

Classification Rules:

CRITICAL = ANY of:

  • Template selection cannot be validated against registry
  • Authority is not BACEN or RFB (invalid for Brazilian regulatory)
  • Context object missing required fields (authority, template_code, template_name)
  • Setup steps cannot complete

HIGH = ANY of:

  • Dictionary status not checked (determines 40-min vs automatic validation)
  • User not informed about interactive validation requirement
  • Documentation path not set correctly
  • Template metadata incomplete

Blocker Criteria - STOP and Report

You MUST distinguish between decisions you CAN make vs those requiring escalation.

Decision TypeExamplesAction
Can DecideDefault deadline, context field ordering, documentation formatProceed with setup
MUST EscalateTemplate not in registry, user selection unclear, multiple valid authoritiesSTOP and ask for clarification
CANNOT OverrideAskUserQuestion requirement, dictionary check, context completeness, user alert for interactive modeHARD BLOCK - Must complete before Gate 1

HARD GATES (STOP immediately):

  1. Template Not Found: Template missing from registry
  2. Ambiguous Selection: User response doesn't match available templates
  3. Missing Context: Required context fields cannot be populated
  4. Dictionary Check Skipped: Cannot determine validation mode without check

Escalation Message Template:

⛔ **SETUP BLOCKER - Cannot Initialize Context**

**Issue:** [Specific blocker]
**Impact:** [What cannot be determined/initialized]
**Required:** [What needs resolution]

**Cannot proceed to Gate 1 until resolved.**

Cannot Be Overridden

NON-NEGOTIABLE requirements (no exceptions, no user override):

RequirementWhy NON-NEGOTIABLEVerification
AskUserQuestion for SelectionPrevents typos, validates against registry, creates audit trailUsed AskUserQuestion tool
Dictionary Status CheckDetermines validation mode (40-min difference)Checked dictionary path
User Alert for Interactive ModeUX requirement, informed consent for long processAlert shown if no dictionary
Complete Context InitializationIncomplete context causes mysterious gate failuresALL required fields populated
Template Registry ValidationEnsures template exists and is supportedTemplate verified in registry

CANNOT allow user to:

  • Skip template selection ("I already told you CADOC 4010" = NO - validate anyway)
  • Bypass dictionary check ("just assume no dictionary" = NO)
  • Skip user alert ("they'll figure it out" = NO)
  • Initialize partial context ("add missing fields later" = NO)
  • Hard-code selections ("same as last time" = NO - run selection)

Pressure Resistance

See shared-patterns/pressure-resistance.md for universal pressure scenarios.

Setup-Specific Pressures

User SaysYour Response
"I already said CADOC 4010, just start""I MUST validate the selection against our registry. This takes 30 seconds and prevents typos (4010 vs 4020). Running AskUserQuestion now."
"Skip dictionary check, it doesn't exist""I CANNOT skip the dictionary check. It determines if we need 40-minute interactive validation or can proceed automatically. Checking now."
"Don't alert me, just proceed""I MUST inform you if interactive validation is required. This is a 40-minute process that requires your input. You need to be prepared."
"Just use the same template as last time""I CANNOT hard-code previous selections. Each workflow MUST validate against current registry. Requirements may have changed."
"Setup is ceremony, go straight to analysis""I CANNOT skip setup. It initializes the context that ALL gates depend on. Incomplete setup = mysterious failures in Gates 1-3."

Setup Steps

Step 1: Regulatory Authority Selection

AskUserQuestion: "Which regulatory authority template?"

OptionDescription
CADOCBACEN - Cadastro de Clientes do SFN
e-FinanceiraRFB - SPED e-Financeira
DIMPRFB - Declaração de Informações sobre Movimentação Patrimonial
APIXBACEN - Open Banking API
Novo templateQualquer regulação BACEN/RFB/CVM/SUSEP/outro não listado acima
Open system: The workflow supports ANY regulatory template, not just the pre-defined list. If the template is not listed, select "Novo template" and provide the spec.

Step 1.0: New Template Intake (only if "Novo template" selected)

If the user selects "Novo template", collect the following before proceeding:

AskUserQuestion (sequence):

  1. Template name — ex: "CADOC 4030", "DLO", "e-Financeira evtPatrimonio", "DECRED"
  2. Regulatory authority — BACEN | RFB | CVM | SUSEP | COAF | outro (especificar)
  3. Output format — XML | TXT (fixed-width) | HTML | CSV | JSON
  4. Official spec — URL do manual/circular oficial OU caminho de arquivo XSD/PDF (OBRIGATÓRIO)
  5. Reporter dev URL (optional) — URL do ambiente de desenvolvimento para validação pós-geração

Context additions for new templates:

is_new_template: true
template_spec_url: "<URL fornecida>"
template_spec_format: "<XML|TXT|HTML|CSV>"
reporter_dev_url: "<URL ou null>"  # for optional Test Gate

Alert user:

"Template novo detectado. Gate 1 irá extrair os campos da spec fornecida, usar pattern matching com templates existentes para sugerir mapeamentos, e salvar o dicionário automaticamente ao final. Na próxima execução deste template, o workflow será automático (~5 min)."

BLOCKER: If no official spec URL/file is provided → STOP. Cannot map fields without the authoritative specification.


Step 1.1: Template Selection (Conditional by Authority)

AskUserQuestion: Show template options based on authority selected:

AuthorityQuestionOptions
CADOC"Which CADOC document?"4010 (Cadastro), 4016 (Crédito), 4111 (Câmbio)
e-Financeira"Which event?"evtCadDeclarante, evtAbertura, evtFechamento, evtMovOpFin, evtMovPP, evtMovOpFinAnual
DIMP"Which version?"v10 (current)
APIX"Which API?"001 (Cadastrais), 002 (Contas/Transações)

Template Registry:

CategoryCodeNameFrequencyFormatFATCA/CRS
CADOC4010Informações de CadastroMonthlyXMLN/A
CADOC4016Operações de CréditoMonthlyXMLN/A
CADOC4111Operações de CâmbioDailyXMLN/A
e-FinanceiraevtCadDeclaranteCadastro do DeclarantePer PeriodXMLYes/Yes
e-FinanceiraevtAberturaeFinanceiraAbertura e-FinanceiraSemestralXMLNo/No
e-FinanceiraevtFechamentoeFinanceiraFechamento e-FinanceiraSemestralXMLYes/Yes
e-FinanceiraevtMovOpFinMov. Operações FinanceirasSemestralXMLYes/Yes
e-FinanceiraevtMovPPMov. Previdência PrivadaSemestralXMLNo/No
e-FinanceiraevtMovOpFinAnualMov. Operações Fin. AnualAnnualXMLYes/Yes
DIMPv10DIMP Versão 10AnnualXMLN/A
APIX001Dados CadastraisREST APIJSONN/A
APIX002Contas e TransaçõesREST APIJSONN/A

Capture: Authority (BACEN/RFB), category, code, name, metadata

Step 2: Optional Deadline Input

If not provided by user, use standard deadline for the template type.

Step 3: Check Dictionary Status and Alert User

CRITICAL: Check dictionary BEFORE initializing context. Path: ~/.claude/docs/regulatory/dictionaries/{category}-{code}.yaml

TemplateHas DictionaryValidation Mode
CADOC_4010✅ YesAutomatic
CADOC_4016✅ YesAutomatic
APIX_001✅ YesAutomatic
EFINANCEIRA_evtCadDeclarante✅ YesAutomatic
All others❌ NoInteractive

If NO dictionary exists → AskUserQuestion:

  • Question: "Template has no pre-configured dictionary. Gate 1 will use batch approval by confidence level (~10-15 min). Proceed?"
  • Options: "Proceed" | "Choose different template"
  • Alert user: Gate 1 will query APIs → suggest mappings → batch approval by confidence level → auto-save dictionary for future use

Step 4: Initialize Context Object

Base context structure (ALL fields required):

FieldSourceExample
authorityStep 1"BACEN" or "RFB"
template_categoryStep 1"CADOC", "e-Financeira", "DIMP", "APIX"
template_codeStep 1.1"4010", "evtMovOpFin", "v10", "001"
template_nameRegistry"Informações de Cadastro"
template_selectedComputed"CADOC 4010"
dictionary_statusStep 3{has_dictionary, dictionary_path, validation_mode}
documentation_pathRegistry".claude/docs/regulatory/templates/..."
deadlineUser/Default"2025-12-31"
gate1/gate2/gate3Initializenull (populated by subsequent gates)
is_new_templateStep 1.0false (default) or true (new template)
template_spec_urlStep 1.0null (default) or URL/path of official spec
reporter_dev_urlStep 1.0null (default) or Reporter dev environment URL

Template-Specific Extensions:

CategoryExtra Fields
CADOCformat: "XML", frequency: "monthly"/"daily"
e-Financeiraformat: "XML", event_module, event_category, event_frequency, fatca_applicable, crs_applicable
DIMPformat: "XML", frequency: "annual"
APIXformat: "JSON", api_type: "REST"

Documentation Paths:

  • CADOC: .claude/docs/regulatory/templates/BACEN/CADOC/cadoc-4010-4016.md
  • e-Financeira: .claude/docs/regulatory/templates/RFB/EFINANCEIRA/efinanceira.md
  • DIMP: .claude/docs/regulatory/templates/RFB/DIMP/dimp-v10-manual.md
  • APIX: .claude/docs/regulatory/templates/BACEN/APIX/{code}/

State Tracking Output

Output on completion: SKILL: regulatory-templates-setup | STATUS: COMPLETE | TEMPLATE: {template_selected} | DEADLINE: {deadline} | NEXT: → Gate 1

Success Criteria

  • ✅ Template selected and validated
  • ✅ Deadline established (input or default)
  • ✅ Context object initialized with ALL fields
  • ✅ Dictionary status checked

Output: Return complete context object to parent skill.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.35%
按下载量换算106

Claude

28.24%
按下载量换算78

Cursor

20.35%
按下载量换算56

Gemini CLI

10.25%
按下载量换算28

安全审计

暂无安全审计结果可展示。

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills