Skip to content
Back to skills

Telegram Contract Ops

ASecurity

Telegram-based internal contract generation and eID intake workflow for Vietnamese operations. Use when setting up, migrating, or operating a bot that: (1) receives structured contract input in Telegram, (2) generates `.docx` contracts from a fixed company template, (3) receives Vietnamese electronic ID screenshots, OCRs key fields, and converts them into contract-ready input, and (4) routes behavior by Telegram group for contract workflows.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 25, 2026
toolsshell

Security analysis

A100/100

Pro scans all 15 files and shows the line behind each finding

Scanned September 25, 2026

npx -y skills add CSlawyer1985/legal-skillhub --skill telegram-contract-ops --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Telegram Contract Ops?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Telegram Contract Ops
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cslawyer1985-telegram-contract-ops/badge)](https://www.skillsdirectory.com/skills/cslawyer1985-telegram-contract-ops)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: telegram-contract-ops
description: Telegram-based internal contract generation and eID intake workflow for Vietnamese operations. Use when setting up, migrating, or operating a bot that: (1) receives structured contract input in Telegram, (2) generates `.docx` contracts from a fixed company template, (3) receives Vietnamese electronic ID screenshots, OCRs key fields, and converts them into contract-ready input, and (4) routes behavior by Telegram group for contract workflows.
---

# Telegram Contract Ops

Use this skill for the combined Plan B + Plan C workflow.

## What this skill covers

- Parse standardized Telegram text blocks into contract data
- Generate `.docx` contracts from a company template
- Run Telegram bot flows for `/mauhopdong`, `/cccd`, `/cccd_debug`
- OCR Vietnamese electronic ID screenshots and convert them into Plan B input blocks
- Route contract behavior by Telegram group

## Current design boundary

### Plan B
- Input: structured Telegram-style `KEY: VALUE` block
- Output: `.docx` contract file

### Plan C
- Input: 1 screenshot of Vietnamese electronic ID from app
- OCR output fields:
  - `TEN`
  - `NGAY_SINH`
  - `CCCD`
  - `NGAY_CAP`
  - `THUONG_TRU`
  - `CHO_O_HIEN_TAI` when available
- Hardcode:
  - `NOI_CAP = CTCCS QLHC VTTXH`
- User confirms/edits block before final contract generation

## Keep these outside the packaged skill
- Telegram bot token
- group chat IDs
- `.env.telegram`
- `.env.telegram.groups`
- OCR debug session artifacts
- state files and logs

## Included references
- `references/architecture.md` - flow overview and routing
- `references/deployment.md` - migration/install checklist
- `references/input-template.md` - canonical Telegram input block
- `references/clawhub.md` - publish/install/update commands via ClawHub
- `references/troubleshooting.md` - common runtime and routing issues
- `references/windows.md` - Windows-specific guidance
- `references/macos.md` - macOS-specific guidance

## Included assets/scripts
Read these only when needed:
- `scripts/` for generator/parser/bot helpers
- `assets/` for original `.docx` template
- `assets/windows/` for Windows example env files and quick-start PowerShell wrapper

Files in this skill

  • SKILL.md2.2 KB
  • _meta.json140 B
  • assets/plan-b-telegram-template.txt175 B
  • references/architecture.md922 B
  • references/clawhub.md693 B
  • references/deployment.md4.2 KB
  • references/input-template.md300 B
  • references/macos.md507 B
  • references/troubleshooting.md1 KB
  • references/windows.md761 B
  • scripts/plan-b-docx-generate.py10.2 KB
  • scripts/plan-b-telegram-to-docx.js6 KB
  • scripts/plan-c-eid-parse.js8.1 KB
  • scripts/plan-c-ocr.swift1.7 KB
  • scripts/telegram-planb-bot.js14.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…