content-model

content-model is a command for coding agents from aborroy/aiup-alfresco. It costs 13 tokens per session (2,174 once invoked), scanned A, original, Apache-2.0.

A generator for Alfresco content models, XML definitions that describe custom document types, properties, and classifications, together with their Spring configuration.

In plain words
What is it for?
Creating content-model XML and a Spring context file for custom Alfresco repository content structures.
Why use it?
It turns written requirements into the model files an Alfresco repository add-on needs and checks that the work belongs in the platform project.

Command

Part of the aiup-alfresco plugin — 39 skills, 25 commands, 3 agents, 3 hooks shipped together

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.

agentmods
npx agentmods add commands/aborroy/aiup-alfresco/content-model
Clone the repo
git clone --depth 1 https://github.com/aborroy/aiup-alfresco

Or install aiup-alfresco, the plugin that ships this one along with the rest of its 39 skills, 25 commands, 3 agents, 3 hooks.

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 content-model

README.md
[![agentmods](https://agentmods.dev/badge/commands/aborroy/aiup-alfresco/content-model.svg)](https://agentmods.dev/commands/aborroy/aiup-alfresco/content-model)
Your own site
<a href="https://agentmods.dev/commands/aborroy/aiup-alfresco/content-model"><img src="https://agentmods.dev/badge/commands/aborroy/aiup-alfresco/content-model.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,174 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00013 $0.02174
Opus 5 $0.00006 $0.01087
Sonnet 5 $0.00003 $0.00435
Haiku 4.5 $0.00001 $0.00217

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

Security

Grade A, and why

content-model 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 5d 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.

commands/content-model.md · 237 lines

How it starts

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

/content-model — Content Model Generator

Generate Alfresco content model files based on requirements.

Input

Read REQUIREMENTS.md (or use "$ARGUMENTS" as input) to extract content model requirements and resolve the Platform JAR project's Root path from Section 2 (Project Architecture).

  • If Section 2 contains no Platform JAR project, stop and explain that /content-model only applies to the in-process repository addon project.

Output Files

1. Content Model XML

Create {platform-project-root}/src/main/resources/alfresco/module/{module-id}/model/content-model.xml:

<?xml version="1.0" encoding="UTF-8"?>
<model name="{prefix}:contentModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
    <description>...</description>
    <version>1.0</version>
    <imports>
        <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
        <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
    </imports>
    <namespaces>
        <namespace uri="http://www.{company}.com/model/{prefix}/1.0" prefix="{prefix}"/>
    </namespaces>
    <!-- types and aspects here -->
</model>

2. Spring Context

Create {platform-project-root}/src/main/resources/alfresco/module/{module-id}/context/bootstrap-context.xml:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" ...>
    <bean id="{prefix}.dictionaryBootstrap"
          parent="dictionaryModelBootstrap"
          depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/module/{module-id}/model/content-model.xml</value>
            </list>
        </property>
    </bean>
</beans>

3. Model Constants Interface

Create {platform-project-root}/src/main/java/{package}/model/{Name}Model.java:

package {package}.model;

import org.alfresco.service.namespace.QName;

/**
 * Constants for the {prefix} content model.
 *
 * Use these constants everywhere instead of constructing QNames inline.
 * The two-argument QName.createQName(URI, localName) form is safe at class-load
 * time because it does not require a registered namespace prefix resolver.
 */
public interface {Name}Model {

    String NAMESPACE_URI = "http://www.{company}.com/model/{prefix}/1.0";
    String NAMESPACE_PREFIX = "{prefix}";

    // --- Types ---
    QName TYPE_{TYPE_LOCAL_NAME_UPPER} = QName.createQName(NAMESPACE_URI, "{typeLocalName}");

    // --- Aspects ---
    QName ASPECT_{ASPECT_LOCAL_NAME_UPPER} = QName.createQName(NAMESPACE_URI, "{aspectLocalName}");

    // --- Properties ---
    QName PROP_{PROP_LOCAL_NAME_UPPER} = QName.createQName(NAMESPACE_URI, "{propLocalName}");

    // --- Associations ---
    QName ASSOC_{ASSOC_LOCAL_NAME_UPPER} = QName.createQName(NAMESPACE_URI, "{assocLocalName}");
}

Read the full file on GitHub · 237 lines

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. 5d ago First seen · 237 lines · 13 tokens per session scan A a57036ce1212

Subscribe to this mod's changes

content-model is a command published in the GitHub repository aborroy/aiup-alfresco (13 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 13 tokens to every session and 2,174 once invoked, about $0.0001 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.