dtg-base

dtg-base is a skill for Claude Code from unclecatvn/agent-skills. It costs 43 tokens per session (892 once invoked), scanned A, original, MIT.

A reference for DTG Base, a shared Odoo model that other models can inherit to reuse common utilities. It covers dates and periods, time zones, barcodes, batches, files, numbers, and Vietnamese text.

In plain words
What is it for?
Use it when working with the DTG Odoo codebase or when adding date calculations, time conversion, barcode generation, batch processing, file handling, number rounding, or Vietnamese text processing.
Why use it?
It reduces the need to reimplement routine operations such as converting time zones, checking barcodes, splitting large record sets, or creating ZIP files.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agent-skills plugin — 11 skills, 1 agent shipped together

Good fit Use it when working with the DTG Odoo codebase or when adding date calculations, time conversion, barcode generation, batch processing, file handling, number rounding, or Vietnamese text processing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/unclecatvn/agent-skills/dtg-base
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add unclecatvn/agent-skills --skill dtg-base
Clone the repo
git clone --depth 1 https://github.com/unclecatvn/agent-skills

Made for: Claude Code.

Or install agent-skills, the plugin that ships this one along with the rest of its 11 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dtg-base

README.md
[![agentmods](https://agentmods.dev/badge/skills/unclecatvn/agent-skills/dtg-base.svg)](https://agentmods.dev/skills/unclecatvn/agent-skills/dtg-base)
Your own site
<a href="https://agentmods.dev/skills/unclecatvn/agent-skills/dtg-base"><img src="https://agentmods.dev/badge/skills/unclecatvn/agent-skills/dtg-base.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 892 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.00892
Opus 5 $0.00022 $0.00446
Sonnet 5 $0.00009 $0.00178
Haiku 4.5 $0.00004 $0.00089

Measured 8d ago against content hash 8ea559a99461, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

dtg-base scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/dtg-base/SKILL.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Utility Description
Date & Period Find first/last date of period, period iteration
Timezone Convert local to UTC, UTC to local
Barcode Check barcode exists, generate EAN13
Batch Processing Split large recordsets into batches
after_commit Execute code after transaction commit
Vietnamese Text Strip accents, convert to non-accent
File Utilities Zip directories, get file size
Number Utilities Round 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

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

Read the full file on GitHub · 114 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 114 lines · 43 tokens per session scan A 8ea559a99461

Subscribe to this mod's changes

dtg-base is a skill published in the GitHub repository unclecatvn/agent-skills (130 stars, last pushed 15d ago), licensed MIT. It adds 43 tokens to every session and 892 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

new-odoo-project

TRIGGER: User invokes /new-odoo-project to scaffold a new Odoo website builder project.

19prince/claude-odoo-builder · 0 tokens

odoo-theme-fix

TRIGGER: User shares a screenshot of an Odoo page and asks for visual fixes, theming improvements, or readability changes.

19prince/claude-odoo-builder · 0 tokens

erp-integration

Sync orders, inventory, and customer data between your store and ERP systems like SAP, NetSuite, or Odoo using middleware and async queues.

finsilabs/awesome-ecommerce-skills · 32 tokens

odoo-integration

Use this skill when the user needs to connect to Odoo via XML-RPC, sync Odoo data to external systems (Google Sheets, databases, APIs), read or write Odoo models (stock.picking, sale.order, purchase.order, product.product, etc.), set up cron-based sync jobs, or deploy Odoo integrations on Railway/Render/Fly.io. Also…

txampa/claude-skill-odoo-integration · 116 tokens

Creazione di Editor GUI per Viste XML Odoo

Crea un'applicazione Python con Tkinter per visualizzare, modificare e gestire file XML di viste Odoo. Include parsing ricorsivo, gestione gerarchica degli elementi, modifica di attributi, validazione e gestione delle eccezioni.

ECNU-ICALK/AutoSkill · 65 tokens

odoo-19.0

Odoo 19 development knowledge base with 18 specialized guides covering Actions (ir.actions., cron jobs, server actions), Controllers (HTTP routing, endpoints, auth types), Data files (XML/CSV records, shortcuts, noupdate), API Decorators (@api.depends, @api.constrains, @api.ondelete, @api.onchange, @api.model…

mart337i/odoo-skills · 345 tokens