Files
MyAiConfiguration/shared/global-instructions.md
T
Julian LechnerandClaude Opus 5.5 6159c6373c
CI / CI configuration security checks (pull_request) Successful in 2s
CI / Capabilities and shell quality (pull_request) Successful in 15s
CI / Python tests and compilation (pull_request) Successful in 36s
CI / QMD unit tests (pull_request) Successful in 7s
CI / Build and inspect generated packages (pull_request) Successful in 16s
CI / Bash integration and installation guards (pull_request) Failing after 51s
CI / PowerShell tests on Ubuntu (pull_request) Failing after 1m45s
CI / Installed client configuration smoke tests (pull_request) Canceled after 1m24s
docs(rules): fix contradictions, update technical rules, enforce rule structure
- Resolve contradictions: authorization is never a skipped "boundary check";
  one browser token policy (BFF/HttpOnly cookies first, RFC 10017); one
  sanitizer-bypass rule; Angular responses are unknown until validated.
- Add security rules for AI/LLM integration and Java XXE, concrete crypto
  and password-hashing parameters, and RFC 8725 JWT validation.
- Update version-dependent guidance after checking official sources:
  Angular 22, TypeScript 6/7, Node 24+, .NET 10/C# 14, JDK 21-25, Spring
  Boot 4; add a Spring Boot and Spring Security topic.
- Give every rule a unique level-1 title and scope line, keep language
  security files to language specifics, and fix routing for inbound vs
  outbound HTTP, XML parsing, and WPF/Angular parent rules.
- Validate rule structure and routing in validate-config.py, with tests.
- Fix CI issues found by a local run: shellcheck directive order, pinned
  ruff rule set, Invoke-Python test mock, CRLF-tolerant package checks,
  Windows-only credential test, and refreshed prompt-budget baselines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 10:51:08 +01:00

3.8 KiB

Global Instructions

For credentials, run the child command through ~/.my-ai-configuration/bin/with-credential.__SCRIPT_EXTENSION__ with the client and credential key. Never expose credentials in commands, output, logs, or files.

Loading rules

Load rules just in time. First identify the changed area, languages, frameworks, tools, and security or workflow concerns from the task and nearby files. Then load only rules whose triggers match; never preload or recursively read the complete rules tree.

For Codex, read the listed rule path directly. For Claude, invoke the matching rules-* skill by its exact name. When a technology directory applies, load its index skill/file first, then load only the topic skills/files that match the work. An index is a small routing map, not a request to load every linked topic. Load cross-cutting rules independently when their stated trigger applies. If a needed rule is not listed or installed, continue with applicable rules and repository conventions.

Changes to or reviews of code, scripts, hooks, tests, infrastructure, integrations, or executable configuration: rules/security/index.md / rules-security. Skip it for prose-only changes.

Focused security (Codex paths under rules/security/references/): authentication, authorization, sessions, tokens, permissions, tenants => auth.md / rules-security-auth; inbound HTTP endpoints, request handling, API (de)serialization => api.md / rules-security-api; browser, cookies, redirects, XSS, CSRF => web.md / rules-security-web; databases, queries, persistence, sensitive data => data.md / rules-security-data; files, uploads, archives, paths, processes, IPC, XML parsing, deserialization => files.md / rules-security-files; outbound HTTP calls, webhooks, URL fetching, proxies, TLS, SSRF => network.md / rules-security-network; cryptography, secrets, keys, credentials => crypto.md / rules-security-crypto; dependencies, packages, plugins, builds, deployment, CI => supply-chain.md / rules-security-supply-chain; LLM calls, prompts, agents, tools, retrieval/RAG => ai.md / rules-security-ai; active security testing => testing.md / rules-security-testing.

Technology indexes: Angular => rules/angular/index.md / rules-angular; C#/.NET => rules/csharp/index.md / rules-csharp; Java/JVM => rules/java/index.md / rules-java; TypeScript/ECMAScript => rules/typescript/index.md / rules-typescript; UI/UX => rules/ui-ux/index.md / rules-ui-ux; WPF/XAML/MVVM => rules/wpf/index.md / rules-wpf.

Cross-cutting: unclear requirements or significant choices => rules/decision-rule.md / rules-decision-rule; completion or review readiness => rules/definition-of-done.md / rules-definition-of-done; Git operations => rules/git.md / rules-git; Microsoft 365, Azure DevOps, Teams => rules/microsoft.md / rules-microsoft; delegation or long-running work => rules/orchestration.md / rules-orchestration; behavior-preserving refactors => rules/refactoring.md / rules-refactoring.

Tools and delegation

Use the mcporter CLI for MCP servers this configuration registers there, especially when the same server must work across Claude and Codex. Use a selected native plugin's MCP tools directly even when MCPorter is active; do not route them through an extra CLI hop or register the same server through both paths. Prefer native Codex plugin packaging when it provides the needed MCP server and skills together. Keep MCPorter where it provides a concrete shared benefit such as credential handling, discovery, or cross-client portability. If the selected route is unavailable, report the limitation instead of silently switching routes.

The main agent owns state and decisions. Delegate only independent work when it saves effort; use one implementer for contained work. Subagents do not spawn agents; pass minimal context and verify handoffs.