Agent skill

Dtg Base

by unclecatvn in unclecatvn/agent-skills

Complete reference for DTG Base module utilities and helpers.

MITAuto-check passed

Install Dtg Base

skills CLI
$ npx skills add unclecatvn/agent-skills --skill dtg-base -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install unclecatvn/agent-skills dtg-base --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/unclecatvn/agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/dtg-base .claude/skills/dtg-base && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dtg-base
GitHub stars
143
Token cost
~901 tokens
SKILL.md length
256 words
Files
4
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

Complete reference for DTG Base module utilities and helpers.

  • SKILL.md covers What is DTG Base?, Quick Reference, Main Guide and DTGBase Abstract Model, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Dtg Base is an agent skill from unclecatvn/agent-skills. Complete reference for DTG Base module utilities and helpers. DTGBase is an abstract model providing common utility methods for date/time handling, barcode generation, timezone conversion, file operations, and more.

Its SKILL.md is about 900 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files (for example `CLAUDE.md`, `README.md` and `odoo-18-dtg-base-guide.md`).

It works with Odoo and Python. The repository describes itself as: Odoo Skills Documentation. The licence is MIT.

Example prompts

  • “/dtg-base”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 3039ef3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dtg Base loads about 901 tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 256 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~901

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from unclecatvn/agent-skills at commit 3039ef3, republished under its MIT licence (© unclecatvn). 256 words, ~901 tokens.

Download SKILL.mdSave it as .claude/skills/dtg-base/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
dtg-base
description
Complete reference for DTG Base module utilities and helpers. DTGBase is an abstract model providing common utility methods for date/time handling, barcode generation, timezone conversion, file operations, and more.
globs
**/addons_customs/erp/**/*.py
license
MIT
author
UncleCat
version
1.0.0

DTG Base Skill

Complete reference for DTG Base module utilities and helpers in Odoo 18.

What is DTG Base?

DTG Base is a custom abstract model (dtg_base.DTGBase) that provides common utility methods for Odoo development. It's designed to be inherited by other models to gain access to helpful utilities.

Quick Reference

UtilityDescription
Date & PeriodFind first/last date of period, period iteration
TimezoneConvert local to UTC, UTC to local
BarcodeCheck barcode exists, generate EAN13
Batch ProcessingSplit large recordsets into batches
after_commitExecute code after transaction commit
Vietnamese TextStrip accents, convert to non-accent
File UtilitiesZip directories, get file size
Number UtilitiesRound to decimal places

Main Guide

File: odoo-18-dtg-base-guide.md

When to use this skill
  • Working with DTG Odoo codebase
  • Need date/period calculations
  • Timezone conversions
  • Barcode validation
  • Batch processing large recordsets
  • Vietnamese text processing
  • File zipping utilities

DTGBase Abstract Model

Inherit from DTGBase

Location: addons_customs/erp/dtg_base/models/dtg_base.py

python
from odoo import models

class MyModel(models.Model):
    _name = 'my.model'
    _inherit = ['dtg_base.dtg_base']

    def my_method(self):
        # Now you have access to all DTGBase utilities
        first_date = self.find_first_date_of_period('2024-01-15', 'month')
        utc_date = self.convert_local_to_utc('2024-01-15 10:00:00')

File Structure

agent-skills/skills/dtg-base/
├── SKILL.md                       # This file - master index
├── odoo-18-dtg-base-guide.md      # Complete DTG Base utilities reference
└── README.md                      # Skill overview

Utilities Overview

Date & Period Utilities
  • find_first_date_of_period(date, period_type) - Get first date of period
  • find_last_date_of_period(date, period_type) - Get last date of period
  • period_iter(start_date, end_date, period_type) - Iterate over periods
Timezone Conversion
  • convert_local_to_utc(local_dt, tz=None) - Convert local datetime to UTC
  • convert_utc_to_local(utc_dt, tz=None) - Convert UTC datetime to local
Barcode Utilities
  • barcode_exists(barcode, exclude_id=0) - Check if barcode already exists
  • get_ean13 barcode) - Generate/check EAN13 barcode
Batch Processing
  • splittor(limit=None) - Split recordset into batches for processing
String & Text Utilities
  • strip_accents(text) - Remove Vietnamese accents
  • _no_accent_vietnamese(text) - Convert Vietnamese text
File Utilities
  • zip_dir(source_dir, output_file) - Zip a directory
  • zip_dirs(dirs, output_file) - Zip multiple directories
  • _get_file_size(file_path) - Get human-readable file size
Number Utilities
  • round_decimal(value, decimal_places) - Round to specific decimal places

For detailed documentation, see odoo-18-dtg-base-guide.md

© unclecatvn, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files in skills/dtg-base of unclecatvn/agent-skills.

  • SKILL.md
  • CLAUDE.md
  • README.md
  • odoo-18-dtg-base-guide.md

Open the folder on GitHubat commit 3039ef3

Compare with similar skills

Dtg Base next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dtg Base compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dtg Base this skillunclecatvn/agent-skills143—~901Automated safety check: PassMIT
Odoo Qweb Templatessickn33/agentic-awesome-skills47k2 repos~1kAutomated safety check: PassMIT
Odoo Rpc APImajiayu000/claude-skill-registry6663 repos~990Automated safety check: NotesMIT
MCP Server Builderanthropics/skills180k64 repos~2.3kAutomated safety check: PassApache-2.0
PDF Processinganthropics/skills180k48 repos~2kAutomated safety check: PassProprietary
NotebookLM Research AssistantPleasePrompto/notebooklm-skill7.8k14 repos~2.4kAutomated safety check: NotesMIT

Similar skills

  • Odoo Qweb Templates

    sickn33/agentic-awesome-skills

    Expert in Odoo QWeb templating for PDF reports, email templates, and website pages.

    47k GitHub starsUsed in 2 repos~1k tokens
    Documents & OfficeAuto-check passed
  • Odoo Rpc API

    majiayu000/claude-skill-registry

    Expert on Odoo's external JSON-RPC and XML-RPC APIs. An agent skill from majiayu000/claude-skill-registry.

    666 GitHub starsUsed in 3 repos~990 tokens
    Backend & APIsAuto-check: notes
  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 64 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • PDF Processing

    anthropics/skills

    Official

    Handles everyday PDF jobs in Python and on the command line: extract text and tables, merge, split, rotate, watermark, fill forms, encrypt and OCR.

    180k GitHub starsUsed in 48 repos~2k tokens
    Documents & OfficeAuto-check passed
  • NotebookLM Research Assistant

    PleasePrompto/notebooklm-skill

    Lets Claude Code ask questions of your Google NotebookLM notebooks through browser automation and return answers grounded in your uploaded sources.

    7.8k GitHub starsUsed in 14 repos~2.4k tokens
    Knowledge ManagementAuto-check: notes
  • Manim Video Production

    browser-use/video-use

    Produces math and technical explainer videos with Manim Community Edition: concept animations, equation derivations, algorithm walkthroughs and data stories.

    28k GitHub starsUsed in 6 repos~3k tokens
    Media & CreativeAuto-check passed

More from unclecatvn/agent-skills

All 8 skills in this repo
  • Odoo Workflow

    unclecatvn/agent-skills

    Mandatory pre-code gate and definition-of-done for ANY Odoo change (add field, override method, inherit view/xpath, OWL/JS patch, wizard, cron, controller, report, security, migration, bug fix…

    143 GitHub stars~4.7k tokensUpdated 14 days ago
    Auto-check passed
  • Code Review

    unclecatvn/agent-skills

    A skill your agent uses when receiving code review feedback (especially if unclear or technically questionable), when completing tasks or major features requiring review before proceeding, or before…

    143 GitHub stars~1.3k tokensUpdated 14 days ago
    Auto-check passed
  • Odoo 16

    unclecatvn/agent-skills

    Odoo 16 development reference for Python models and ORM (search, domain, readgroup, compute fields), XML/CSV data and views, OWL/JS client code, QWeb reports, security (ACL, record rules, groups)…

    143 GitHub stars~1.4k tokensUpdated 14 days ago
    Auto-check passed
  • Odoo 17

    unclecatvn/agent-skills

    Odoo 17 development reference for Python models and ORM (search, domain, readgroup, compute fields), XML/CSV data and views, OWL/JS client code, QWeb reports, security (ACL, record rules, groups)…

    143 GitHub stars~1.4k tokensUpdated 14 days ago
    Auto-check passed
  • Odoo 18

    unclecatvn/agent-skills

    Odoo 18 development reference for Python models and ORM (search, domain, readgroup, compute fields), XML/CSV data and views, OWL/JS client code, QWeb reports, security (ACL, record rules, groups)…

    143 GitHub stars~1.3k tokensUpdated 14 days ago
    Auto-check passed
  • AI Vibe Slides

    unclecatvn/agent-skills

    Create beautiful, professional HTML or React slide decks ready for fullscreen presentation.

    143 GitHub stars~3.5k tokensUpdated 14 days ago
    Auto-check passed

Works with

Questions about Dtg Base

What does Dtg Base do?

Complete reference for DTG Base module utilities and helpers. Dtg Base is an agent skill from unclecatvn/agent-skills. Complete reference for DTG Base module utilities and helpers.

How do I install Dtg Base in Claude Code?

Run `npx skills add unclecatvn/agent-skills --skill dtg-base -a claude-code`. Or copy the skill folder (skills/dtg-base in unclecatvn/agent-skills) into .claude/skills/dtg-base in your project. Claude Code loads it when a task matches its description.

How do I install Dtg Base in Codex?

Run `npx skills add unclecatvn/agent-skills --skill dtg-base -a codex`. Or copy the skill folder (skills/dtg-base in unclecatvn/agent-skills) into .agents/skills/dtg-base in your project. Codex loads it when a task matches its description.

Can I use Dtg Base in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add unclecatvn/agent-skills --skill dtg-base -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dtg-base, .gemini/skills/dtg-base, .github/skills/dtg-base and .opencode/skills/dtg-base in your project.

What does Dtg Base need to run?

SKILL.md names no scripts, command-line tools or credentials: Dtg Base is instructions for the agent only. Our summary lists: Python 3.

Does Dtg Base access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Dtg Base safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Dtg Base use?

Dtg Base is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dtg Base use?

About 901 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Dtg Base?

Skills that share tags, products or a category with Dtg Base: Odoo Qweb Templates (sickn33/agentic-awesome-skills, 47k stars), Odoo Rpc API (majiayu000/claude-skill-registry, 666 stars), MCP Server Builder (anthropics/skills, 180k stars) and PDF Processing (anthropics/skills, 180k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dtg Base?

unclecatvn (a GitHub user) maintains it in unclecatvn/agent-skills, which has 143 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on September 24, 2026.

Source: unclecatvn/agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.