CSlawyer1985/legal-skillhub / skills/ad-compliance-consumer-rights-ai-review-plus/广告合规+消费者权益保护AI审查Plus
广告合规+消费者权益保护AI审查Plus
Verified基于《广告法》《电子商务法》《消费者权益保护法》及司法解释,结合食品、化妆品、医疗器械、纺织、玩具、电子产品等领域实务案例,从广告合规与消费者权益保护角度提供专业意见。当用户提到广告合规审查、广告违法风险、广告违禁词、虚假宣传、消费者权益、惩罚性赔偿、知假买假、商品标签合规、商标侵权风险、电商详情页审查、行政处罚风险、职业打假、消保咨询、文案合规改写等场景时使用本技能。
assets/word-template-legal-opinion.py
View on GitHub"""
Word 报告生成模板——法律咨询意见书
用于路径 A 的可选 Word 报告输出。
依赖:pip install python-docx
用法:调用 generate_legal_opinion(data_dict, output_path)
"""
from docx import Document
from docx.shared import Pt
from docx.enum.text import WD_ALIGN_PARAGRAPH
from datetime import date
def generate_legal_opinion(data, output_path):
"""
data 字典结构:
{
"consultation_item": "咨询事项",
"answer_date": "YYYY-MM-DD",
"question_classification": "问题定性",
"core_conclusion": "核心结论",
"verification_record": "核验修改记录(仅当执行外部核验时传入;传入空字符串则跳过此节)",
"legal_basis": "法律依据(可换行)",
"judicial_views": "司法/监管观点",
"practical_analysis": "实务分析",
"risk_warnings": "风险提示与建议(文本中已含 🔴🟡🟢 彩色圆点标注风险等级)",
"uncertainty_note": "存疑说明",
"ai_risk_notice": "AI 风险告知"
}
注意:正式报告不包含「检索覆盖说明」「时效性说明」「引用清单」独立章节,
相关信息融入法律依据的逐条引用标注中。
"""
doc = Document()
style = doc.styles['Normal']
font = style.font
font.name = 'SimSun'
font.size = Pt(12)
# ---- 封面 ----
doc.add_paragraph()
doc.add_paragraph()
title = doc.add_paragraph('法律咨询意见书')
title.alignment = WD_ALIGN_PARAGRAPH.CENTER
run = title.runs[0]
run.font.size = Pt(22)
run.font.bold = True
doc.add_paragraph()
cover_items = [
f"咨询事项:{data.get('consultation_item', '')}",
f"答疑日期:{data.get('answer_date', date.today().isoformat())}",
]
for item in cover_items:
p = doc.add_paragraph(item)
p.alignment = WD_ALIGN_PARAGRAPH.CENTER
doc.add_page_break()
# ---- 正文各节 ----
sections = [
('用户咨询事项', 'consultation_item'),
('问题定性', 'question_classification'),
('核心结论', 'core_conclusion'),
('核验修改记录', 'verification_record'),
('法律依据', 'legal_basis'),
('司法/监管观点', 'judicial_views'),
('实务分析', 'practical_analysis'),
('风险提示与建议', 'risk_warnings'),
('存疑说明', 'uncertainty_note'),
('AI 风险告知', 'ai_risk_notice'),
]
for title_text, key in sections:
content = data.get(key, '').strip()
# 跳过空内容章节(如未执行外部核验时 verification_record 为空)
if not content:
continue
heading = doc.add_heading(title_text, level=1)
doc.add_paragraph(content)
doc.save(output_path)
return output_path
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |