/hudu:assetsfrom hudu
Manages Hudu assets and asset layouts, including custom fields, archiving, filtering, and company scoping via the API. Useful for MSP documentation workflows.
Ships in hudu. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Assets in Hudu represent documented items such as servers, workstations, network devices, applications, and any other infrastructure or service an MSP needs to track. Unlike some platforms with fixed asset types, Hudu uses asset layouts -- customizable templates that define the fields and structure for each type of asset. This means your Hudu instance might have asset layouts for "Server," "Workstation," "Firewall," "Microsoft 365 Tenant," or any custom type your team defines.
ninjaone-devices, atera-devices, datto-rmm-devices,
ncentral-devices, or connectwise-automate-computers.itglue-configurations or
itglue-flexible-assets. The two platforms model custom fields
differently, so the field shapes do not transfer.hudu-passwords.hudu-articles.liongard-detections.halopsa-assets, syncro-assets, or superops-assets.Asset layouts are templates that define what fields an asset of that type contains. Each layout has:
Common asset layouts in MSP environments:
| Layout | Description | Typical Fields |
|---|---|---|
| Server | Physical or virtual servers | Hostname, IP, OS, RAM, CPU, serial |
| Workstation | End-user devices | Hostname, user, OS, serial, warranty |
| Network Device | Routers, switches, firewalls | IP, model, firmware, port count |
| Printer | Print devices | IP, model, serial, location |
| Application | Software/services | Version, license key, vendor |
| Microsoft 365 | M365 tenant details | Tenant ID, domain, license count |
| Backup | Backup configuration | Solution, server, schedule, retention |
Each asset layout defines custom fields. Field types include:
| Type | Description | Example |
|---|---|---|
| Text | Single-line text | Hostname, serial number |
| RichText | HTML rich text | Notes, description |
| Number | Numeric value | RAM (GB), port count |
| Date | Date value | Warranty expiry, install date |
| CheckBox | Boolean | Monitored (yes/no) |
| Dropdown | Predefined options | OS type, status |
| Email address | Admin contact | |
| Phone | Phone number | Support line |
| Password | Embedded password | Admin credentials |
| AssetTag | Link to another asset | Host server, parent device |
| Website | URL | Management portal |
Every asset requires company_id, asset_layout_id, and name. primary_serial, primary_model, and primary_mail are first-class columns; everything else lives in the layout-defined custom fields.
See references/fields.md for the complete field reference, including asset layout fields.
| Operation | Request |
|---|---|
| List / filter | GET /api/v1/assets?company_id=123&asset_layout_id=5&name=DC-01&archived=false&page=1 |
| Find by serial | GET /api/v1/assets?primary_serial=ABC123456789 |
| Get one | GET /api/v1/assets/789 |
| Create | POST /api/v1/assets with { "asset": { ... } } |
| Update | PUT /api/v1/assets/789 |
| Delete | DELETE /api/v1/assets/789 |
| Archive / unarchive | PUT /api/v1/assets/789/archive | /unarchive |
| Layouts | `GET |
All requests use the x-api-key header. Request and response bodies are wrapped in a singular resource key (asset, asset_layout).
Custom field values are written as an array of single-key objects keyed by the field's snake_cased label, not as a flat object:
"custom_fields": [
{ "hostname": "dc-01.acme.local" },
{ "ip_address": "192.168.1.10" }
]
On read they come back on the asset as fields, not custom_fields.
See references/api.md for the complete endpoint catalog with request/response examples.
Layout IDs are instance-specific — resolve the layout by name before creating the asset rather than hardcoding an ID.
async function onboardAsset(companyId, assetData) {
// Step 1: Find the correct asset layout
const layouts = await fetchAssetLayouts({ name: assetData.layoutName });
const layout = layouts[0];
if (!layout) throw new Error(`Asset layout "${assetData.layoutName}" not found`);
// Step 2: Create the asset
const asset = await createAsset({
name: assetData.name,
asset_layout_id: layout.id,
company_id: companyId,
primary_serial: assetData.serialNumber,
primary_model: assetData.model,
custom_fields: assetData.customFields
});
return asset;
}
Warranty dates live in a layout-defined custom field, so they cannot be filtered server-side — fetch and filter client-side.
async function getExpiringWarranties(daysAhead = 90) {
const today = new Date();
const futureDate = new Date();
futureDate.setDate(futureDate.getDate() + daysAhead);
// Fetch all active assets and check warranty fields
const assets = await fetchAllAssets({ archived: false });
return assets
.filter(a => {
const warrantyField = a.fields?.find(f => f.warranty_expiry);
if (!warrantyField) return false;
const warranty = new Date(warrantyField.warranty_expiry);
return warranty >= today && warranty <= futureDate;
})
.sort((a, b) => {
const aDate = new Date(a.fields.find(f => f.warranty_expiry)?.warranty_expiry);
const bDate = new Date(b.fields.find(f => f.warranty_expiry)?.warranty_expiry);
return aDate - bDate;
});
}
async function decommissionAsset(assetId, reason) {
// Update with decommission notes
await updateAsset(assetId, {
custom_fields: [
{ notes: `DECOMMISSIONED: ${new Date().toLocaleDateString()} - ${reason}` }
]
});
// Archive the asset
await archiveAsset(assetId);
return { status: 'archived', assetId, reason };
}
async function generateAssetInventory(companyId) {
const assets = await fetchAssets({ company_id: companyId, archived: false });
const byLayout = {};
for (const asset of assets) {
const layoutName = asset.asset_layout_name || 'Unknown';
if (!byLayout[layoutName]) byLayout[layoutName] = [];
byLayout[layoutName].push({
name: asset.name,
serial: asset.primary_serial,
model: asset.primary_model,
updatedAt: asset.updated_at
});
}
return byLayout;
}
custom_fields on write, fields on read. Round-tripping an asset requires renaming the key.company_id, asset_layout_id, name, primary_serial, and archived filter server-side; anything layout-defined must be filtered after fetching.fields where required: true — the error message does not name the field.PUT /assets/:id/archive), not an archived field on update. Archived assets are excluded from default listings.See references/errors.md for the complete error and validation table plus a recovery pattern.
What SKILL.md sets; muted values are Claude Code's defaults
When creating, querying, updating, or archiving documented items in Hudu, or when designing the asset layouts that define their fields. Use when: hudu asset, hudu configuration, hudu server, hudu workstation, hudu device, asset layout, asset management, device inventory, hardware tracking, or hudu ci.
Three short reads, in order
hudu, assets, asset-layouts, msp, documentation, asset-management
npx claudepluginhub wyre-ai/msp-claude-plugins --plugin hudu6 skills in this plugin
/api-patternsHudu API PatternsHudu REST API fundamentals: x-api-key authentication, base URL and /api/v1/ structure, granular API key permission levels, UI-vs-API resource naming differences, query-parameter filtering, page-based pagination, the 300 req/min rate limit, and HTTP status/error semantics.
/articlesHudu ArticlesHudu knowledge base articles: HTML content format, company-scoped vs global articles, article folders (including nesting), drafts vs published, the /api/v1/articles endpoint surface, and search, templating, and documentation-health patterns.
/companiesHudu CompaniesHudu companies (clients/organizations): company field reference, parent/child hierarchy, PSA integration matching via id_in_integration, the /api/v1/companies CRUD plus archive/unarchive endpoints, onboarding and offboarding workflows, and how companies scope assets, passwords, articles, and websites.
/passwordsHudu PasswordsHudu secure credential storage: the /api/v1/asset_passwords endpoint (the UI calls these "Passwords"), company scoping and password folders, TOTP secrets, per-API-key password permissions, activity-log auditing, rotation workflows, and output-safety rules for handling plaintext credential values.
/websitesHudu WebsitesHudu website records: CRUD via /api/v1/websites, monitoring and pause/disable fields, SSL/TLS certificate tracking, email security status (DMARC, DKIM, SPF), DNS record fields, company linkage, and website validation errors.
Other plugins' skills for the same job