Skip to content
Agentmart
Submit a tool

implement-callback-model

Create/implement model file for webhook callbacks.

Skill by FreeDevTeam

IndexedGPL-3.0
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/freedevteam-implement-callback-model

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Create/implement model file for webhook callbacks. Follows pattern: filter allowed fields, hide internal IDs, validate with Joi. Includes discovering backend schema and selecting correct fields. Trigger on: 'tạo model webhook', 'implement callback model', 'model file callback'.

Use cases: backend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/implement-callback-model

What's inside

Skill name
implement-callback-model
Description
Create/implement model file for webhook callbacks. Follows pattern: filter allowed fields, hide internal IDs, validate with Joi. Includes discovering backend schema and selecting correct fields. Trigger on: 'tạo model webhook', 'implement callback model', 'model file callback'.
License
GPL-3.0
Instructions
35 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Kỹ năng: Tạo Model File cho Webhook Callback

Hướng dẫn tạo model file để xác định dữ liệu nào được phép gửi đến đối tác qua webhook callback.

## Khi nào dùng

- ✅ Tạo file `API/StationWebHooks/model/CallbackXxxModel.js` mới
- ✅ Quyết định fields nào hidden, fields nào exposed
- ✅ Thêm comment giải thích tại sao hide các internal IDs

## Mục tiêu
- Lọc dữ liệu trả về cho partner qua webhook
- Ẩn internal fields
- Validate bằng Joi

## Nguyên tắc

### 1. Chỉ expose:
- Primary key
- Business fields
- partnerName, partnerTranID
- projectName
- createdAt, updatedAt

### 2. Luôn ẩn:
- Internal IDs (customerId, appUserId...)
- Internal flags (isDeleted...)
- Audit nội bộ (createdBy...)

### 3. Implementation
- Dùng ALLOWED_FIELDS, HIDDEN_FIELDS để filter
- parseModel: lọc field
- validateModel: Joi validate
- Sử dụng các function của CallbackModelCommon để tránh duplicate code

From FreeDevTeam/AISKILL_Copilot_Shared_NodeJS_Backend, GPL-3.0.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 28, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
GPL-3.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from FreeDevTeam

Cite this page

implement-callback-model skill. Agent Mart. https://agentmart.dev/skills/freedevteam-implement-callback-model (last updated 2026-10-24)