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

ring%3aregulatory-templates-gate3Ring%3a 监管模板 gate3

Agent Skill

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

总安装

890

周安装

36

GitHub Stars

180

下载量

279
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

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

  • 它适合在 Codex、Claude、Cursor、Gemini CLI 中基于关键词或任务需求定位内容。
  • 可通过 npx skills add 命令从 GitHub 仓库安装,具体用法见原始文档。
  • 使用前应评估权限边界、维护情况及潜在的系统级操作风险。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Regulatory Templates - Gate 3: Template File Generation

Overview

This sub-skill executes Gate 3 of the regulatory template workflow: generating the complete.tpl template file with all validated mappings and transformations from Gates 1-2.

Parent skill: regulatory-templates

Prerequisites:

  • Gate 1 PASSED (field mappings complete)
  • Gate 2 PASSED (validations confirmed)
  • Context object with Gates 1-2 results

Output: Generated.tpl template file ready for use


Foundational Principle

Template generation is the final quality gate before production deployment.

Gate 3 transforms validated specifications into production artifacts:

  • Agent-based generation: finops-automation applies validated mappings consistently - manual creation introduces human error
  • Two-file separation: Clean.tpl (production code) +.tpl.docs (documentation) - inline comments bloat production artifacts
  • All mandatory fields: 100% inclusion required - 95% = 5% of regulatory data missing in BACEN submission
  • Correct transformations: Django filters applied per Gates 1-2 validation - errors here multiply in every submission
  • Valid syntax: Template must execute without errors - syntax failures block Reporter deployment

Skipping requirements in Gate 3 means:

  • Manual creation bypasses systematic validation (fatigue errors, missed transformations)
  • Single-file output mixes production code with documentation (maintenance nightmare)
  • Missing fields cause BACEN submission failures (compliance violations)
  • Invalid syntax blocks deployment (emergency fixes under pressure)

Gate 3 is not automation for convenience - it's the final verification layer.


When to Use

Called by: regulatory-templates skill after Gate 2 passes

Purpose: Create the final Django/Jinja2 template file with all field mappings, transformations, and validation logic


NO EXCEPTIONS - Generation Requirements Are Mandatory

Gate 3 template generation requirements have ZERO exceptions. This is the final artifact that goes to production.

Common Pressures You Must Resist

PressureYour ThoughtReality
Fatigue"Manual creation is faster when tired"Fatigue increases error rate. Agent doesn't get tired. 10 min manual < 15 min validated
Simplicity"One file easier than two"Production artifacts must be clean. Documentation bloats.tpl files
Confidence"45/47 fields works for 99% cases"100% mandatory required. 95% = BACEN submission failures on edge cases
Experience"I can optimize agent output"Agent applies validated mappings systematically. Manual edits introduce drift

Generation Requirements (Non-Negotiable)

Agent-Based Generation:

  • ✅ REQUIRED: Use finops-automation agent for all template generation
  • ❌ FORBIDDEN: Manual.tpl creation, editing agent output
  • Why: Agent applies Gates 1-2 validations consistently, prevents fatigue errors

Two-File Output:

  • ✅ REQUIRED: Generate.tpl (clean code) +.tpl.docs (documentation)
  • ❌ FORBIDDEN: Single file with inline comments, merged documentation
  • Why: Production artifacts stay clean, documentation separate for maintenance

All Mandatory Fields:

  • ✅ REQUIRED: 100% mandatory fields in template (47/47)
  • ❌ FORBIDDEN: "45/47 is good enough", placeholder comments for missing
  • Why: Each missing field = potential regulatory compliance failure

Validated Output:

  • ✅ REQUIRED: Use exact agent output without manual "improvements"
  • ❌ FORBIDDEN: Refactoring for optimization, rewriting for clarity
  • Why: Agent output validated against Gates 1-2, edits create drift

The Bottom Line

Manual shortcuts in final artifact = production regulatory failures.

Gate 3 is the last checkpoint. All previous gates' work culminates here. Bypassing agent generation defeats the entire 3-gate validation process.

If you're tempted to skip agent generation, ask yourself: Am I willing to debug production BACEN submission failures from manual template errors?


Rationalization Table - Know the Excuses

ExcuseWhy It's WrongCorrect Response
"Manual creation same output, faster"Agent validates systematically, manual risks errorsUse agent completely
"10 min vs 15 min, I'm tired"Fatigue increases manual error rateLet agent work
"Two files is over-engineering"Production code must be clean, no doc bloatGenerate TWO files
"One file easier to maintain"Mixing code and docs creates maintenance burdenSeparate concerns
"45/47 works for 99% cases"100% mandatory required, edge cases matterInclude ALL fields
"I can optimize agent output"Optimization creates drift from validated specUse exact output
"Agent code is verbose"Verbose but validated > concise but wrongTrust validation
"Skip for now, add fields later"Template is final artifact, can't patch BACENComplete now

If You Find Yourself Making These Excuses

STOP. You are rationalizing.

Gate 3 is where 5+ hours of Gates 1-2 work becomes a production artifact. Shortcuts here waste all previous validation effort.


Gate 3 Process

Agent Dispatch

Dispatch: Task(subagent_type: "ring:finops-automation")

Prompt includes:

SectionContent
Contexttemplate_name, template_code, authority, field_mappings.length, validation_rules.length
Field MappingsPer field: code, name, source, transformation, confidence%, required
Validation RulesPer rule: rule_id, description, formula
Tasks1. Generate clean.tpl 2. Include all mappings 3. Apply Django syntax 4. Structure per regulatory spec 5. Conditional logic 6. Minimal comments

CRITICAL - Naming Convention:

  • ALL fields in snake_case (already converted by Gate 1)
  • Examples: legal_document, operation_route, opening_date, natural_person

CRITICAL - Data Sources:

  • midaz_onboarding: organization, account (cadastral)
  • midaz_transaction: operation_route, balance, operation (transactional)
  • Format: {{data_source.entity.index.field|filter}}
  • Example: {{midaz_onboarding.organization.0.legal_document|slice:':8'}}

Expected Output

FileContent
{code}_preview.tplClean Django/Jinja2 template code, production-ready, minimal comments
{code}_preview.tpl.docsFull documentation: field mappings, transformations, troubleshooting

Red Flags - STOP Immediately

If you catch yourself thinking ANY of these, STOP and re-read the NO EXCEPTIONS section:

Manual Shortcuts

  • "Create.tpl manually, faster"
  • "Edit agent output for optimization"
  • "I can write cleaner code"
  • "Agent is too verbose"

File Structure Violations

  • "One file easier to maintain"
  • "Inline comments instead of.docs"
  • "Merge documentation into.tpl"
  • "Two files is over-engineering"

Partial Completion

  • "45/47 fields works for most cases"
  • "Skip edge case fields"
  • "Add missing fields later"
  • "99% is good enough"

Justification Language

  • "Being pragmatic"
  • "I'm too tired for agent wait"
  • "Manual is faster"
  • "Over-engineering"
  • "Optimization is better"

If You See These Red Flags

  1. Acknowledge rationalization ("I'm trying to skip agent generation")
  2. Read NO EXCEPTIONS (understand why agent is required)
  3. Read Rationalization Table (see excuse refuted)
  4. Use agent completely (no manual shortcuts)

Template generation shortcuts waste all Gates 1-2 validation work.



Severity Calibration

MUST classify template generation issues using these severity levels:

SeverityDefinitionExamplesGate Impact
CRITICALBLOCKS template deployment OR causes regulatory rejection- Mandatory field missing from template- Invalid Django/Jinja2 syntax- Template file generation failed- Output format violates regulatory specHARD BLOCK - Cannot deploy template
HIGHREQUIRES fix before production use- Transformation applied incorrectly- Optional but commonly-used field missing- Filter chain produces wrong output- Template structure doesn't match specMUST fix before deployment
MEDIUMSHOULD fix to improve template quality- Template > 100 lines (could be simpler)- Redundant transformations- Missing comments in.tpl.docs- Suboptimal loop structureSHOULD fix - document if deferred
LOWMinor improvements possible- Variable naming improvements- Whitespace formatting- Documentation enhancementsOPTIONAL - note in report

Classification Rules:

CRITICAL = ANY of:

  • Any mandatory field NOT in generated template
  • Template syntax error (cannot execute)
  • Output format violates BACEN/RFB specification
  • Agent generation completely failed

HIGH = ANY of:

  • Transformation differs from Gates 1-2 specification
  • Filter produces wrong output type/format
  • Field ordering wrong per regulatory spec
  • Missing validation logic defined in Gate 2

Cannot Be Overridden

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

RequirementWhy NON-NEGOTIABLEVerification
Agent-Based GenerationManual creation bypasses Gates 1-2 validationtemplate.generated_by == "finops-automation"
Two-File OutputProduction code must be clean, docs separateBoth.tpl and.tpl.docs exist
100% Mandatory FieldsBACEN/RFB submission requires ALL mandatory datatemplate.fields_included == spec.mandatory_count
Valid SyntaxTemplate must execute without errorsTemplate passes syntax validation
Exact TransformationsGates 1-2 validated each transformationAll transformations match specification

User CANNOT:

  • Skip agent generation ("manual is faster" = NO)
  • Merge docs into single file ("one file easier" = NO)
  • Accept 95% mandatory fields ("45/47 is good enough" = NO)
  • Edit agent output ("I can optimize" = NO)
  • Deploy template with syntax errors ("fix in production" = NO)

Your Response to Override Attempts:

"I CANNOT [request]. Gate 3 requires [specific requirement] which is NON-NEGOTIABLE. Template generation through finops-automation agent ensures Gates 1-2 validations are applied consistently. We MUST [required action]."

Pass/Fail Criteria

PASS Criteria

  • ✅ Template file generated successfully
  • ✅ All mandatory fields included
  • ✅ Transformations correctly applied
  • ✅ Django/Jinja2 syntax valid
  • ✅ Output format matches specification
  • ✅ File saved with correct extension

FAIL Criteria

  • ❌ Missing mandatory fields
  • ❌ Invalid template syntax
  • ❌ Transformation errors
  • ❌ File generation failed

State Tracking

PASS: SKILL: regulatory-templates-gate3 | GATE: 3 | STATUS: PASSED ✅ | FILE: {filename} | FIELDS: {n}/{total} | NEXT: Template ready for use

FAIL: SKILL: regulatory-templates-gate3 | GATE: 3 | STATUS: FAILED ❌ | ERROR: {error} | BLOCKERS: {description}


Output to Parent Skill

Return: gate3_passed, template_file (filename, path, size_bytes, fields_included), ready_for_use, next_action (template_complete | fix_and_regenerate)


Common Template Patterns

PatternSyntax
Field access{{organization.legal_document}} (snake_case)
Collection loop{% for item in collection %}{{item.field}}{% endfor %}
Conditional{% if condition %}<field>{{value}}</field>{% endif %}
Nested{{parent.child.grandchild}}
Filter chain`{{value\slice:':8'\upper}}`

Remember: Use exact Gate 1 paths, snake_case only, apply Gate 2 transformations, follow regulatory format exactly.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

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

平台分布

Codex

37.63%
按下载量换算105

Claude

29.03%
按下载量换算81

Cursor

19.52%
按下载量换算54

Gemini CLI

8.7%
按下载量换算24

安全审计

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

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills