agentleFS
dimastrianndimastriann/odoo-erp-mcp/.agents/skills/web-ui/SKILL.md

web-ui

Skill3 starsChanged 8 days agoMITView on GitHub

Use when changing the local Odoo configuration UI, Axum routes, static assets, pagination helpers, or admin approval inbox. Covers accessibility, credential safety, API shape, and the JavaScript test gate.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 5 are distinctive, and 12 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 12

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add or change routes in src/views/web_ui.rs.

    line 13
  2. Very specific:

    Put authenticated /api routes in the protected router.

    line 14
  3. Very specific:

    Keep require_auth on every new admin API route.

    line 17
  4. Very specific:

    Use typed request structs and serde validation.

    line 18
  5. Very specific:

    Never return password or resolved environment values.

    line 25
  6. Distinctive:

    Do not log credentials, session tokens, or request bodies containing secrets.

    line 29
  7. Very specific:

    Keep session cookies HttpOnly and SameSite=Strict.

    line 31
  8. Very specific:

    Keep forms labeled and keyboard reachable.

    line 38
  9. Very specific:

    Keep pagination in pagination.js.

    line 44
  10. Distinctive:

    Keep the UI local-first; do not add remote scripts, fonts, or telemetry.

    line 50
  11. Distinctive:

    Keep dark/light theme behavior and localStorage keys stable.

    line 51
  12. Very specific:

    Run node --test src/views/pagination.test.js when JavaScript or pagination changes.

    line 55
  13. Very specific:

    Add Rust tests in src/views/web_ui.rs for:

    line 57
  14. Distinctive:

    Run the full quality gate from AGENTS.md.

    line 63
  15. Very specific:

    Check the rendered UI at http://127.0.0.1:3333 when practical.

    line 67
  16. Distinctive:

    Verify no secret appears in page data, network responses, or console output.

    line 68
  17. Very specific:

    Keep ODOO_MCP_UI_BIND default local-only.

    line 69

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Web UI

AGENTS.md is the canonical rule set. The UI is the admin surface for configuration, policy, approvals, and audit.

1. Server routes

  • Add or change routes in src/views/web_ui.rs.
  • Put authenticated /api routes in the protected router; public routes stay limited to /, static assets, /health, /ready, /api/version, /api/login, and /api/logout.
  • Keep require_auth on every new admin API route.
  • Use typed request structs and serde validation; reject malformed IDs and payloads before mutating configuration.
  • Return stable JSON shapes and appropriate status codes.

2. Credential safety

  • redacted_config_value must keep secrets out of /api/config.
  • Never return password or resolved environment values; expose only has_password and password_env.
  • Preserve the behavior where a blank password keeps the existing secret only for the matching credential source.
  • Do not log credentials, session tokens, or request bodies containing secrets.
  • Keep session cookies HttpOnly and SameSite=Strict.

3. UI behavior

  • src/views/index.html and src/views/app.js use Vue and the existing design tokens in src/views/styles.css; follow the current class and component patterns.
  • Keep forms labeled and keyboard reachable; preserve aria-label, label, and focus behavior.
  • Validate policies before saving: conflicting allow and deny lists, malformed JSON, and empty default-deny policies require explicit confirmation.
  • Show default-deny warnings and never imply that unmatched capabilities are allowed.
  • Keep pagination in pagination.js; do not duplicate page math in app.js.

4. Static assets

  • Serve assets through the existing handlers (app_js, pagination_js, styles_css); do not add a catch-all file server.
  • Keep the UI local-first; do not add remote scripts, fonts, or telemetry.
  • Keep dark/light theme behavior and localStorage keys stable.

5. Tests

  • Run node --test src/views/pagination.test.js when JavaScript or pagination changes.
  • Add Rust tests in src/views/web_ui.rs for:
    • credential redaction and environment-secret absence;
    • switching credential sources;
    • stable config, approval, and audit response shapes;
    • malformed approval IDs;
    • health and readiness responses.
  • Run the full quality gate from AGENTS.md.

6. Review

  • Check the rendered UI at http://127.0.0.1:3333 when practical.
  • Verify no secret appears in page data, network responses, or console output.
  • Keep ODOO_MCP_UI_BIND default local-only.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.