csharp-monogame
Use when working with XNA, MonoGame, or NuciXNA C# code, especially GUI controls, screens, textures, text rendering, layout, or control lifecycle.
- License 许可
- GPL-3.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- csharp-monogame
- description
- Use when working with XNA, MonoGame, or NuciXNA C# code, especially GUI controls, screens, textures, text rendering, layout, or control lifecycle.
03 SKILL.md 正文
C# MonoGame / NuciXNA
Apply these rules whenever the task involves XNA, MonoGame, or NuciXNA:
- When NuciXNA packages are present, use
GuiImageinstead of rawTexture2Dfields or dictionaries for loading and holding textures. Do not callNuciContentManager.Instance.LoadTexture2D(...)directly whenGuiImagecan be used. - When NuciXNA packages are present, use
GuiTextinstead of rawSpriteFontorSpriteBatch.DrawString(...)for text rendering. - Let the NuciXNA GUI Manager fully manage
GuiControllifecycle methods (LoadContent,UnloadContent,Update, andDraw). Never call those methods directly on a control. - Inside a
GuiControlsubclass, register child controls throughRegisterChildren(...)orRegisterChild(...). - Inside a
Screensubclass, register controls throughGuiManager.Instance.RegisterControls(...)orGuiManager.Instance.RegisterControl(...). - There are no exceptions to the registration rule; never manually call
LoadContent,UnloadContent,Update, orDrawon aGuiControl. - Use
Point2D.Emptyinstead ofnew Point2D(0, 0)andSize2D.Zeroinstead ofnew Size2D(0, 0). - In layout code, numeric constants are limited to measurements within the artwork itself, expressed as named constants describing what they measure in the asset and used as numerators in proportional scaling against runtime texture dimensions. Read texture dimensions at runtime through
GuiImage; never hardcode them.
04 同仓库更多 Skills
ui-design-review
Use when designing, building, reviewing, or repairing user interfaces, or when UI work must be verified before delivery. Covers accessibility, touch and interaction, performance, style selection, layout and responsive behaviour, typography and colour, animation, forms and feedback, navigation, and charts, with a prioritised rule set, a native and mobile pre-delivery checklist, and a browser-driven audit procedure that reports evidence-ranked findings.
release-verification
Use after a release, publication, or deployment to verify the delivered artefact and observe the affected surfaces until the observation window is clean. Covers release identity, surface evidence, finding classification, observation cadence, and partial-verification reporting.
pr-babysit
Use when monitoring a pull request or review cycle until it is ready to merge. Covers check observation, unresolved review threads, verification prior to resolution, and evidence-based completion.
supply-chain-security
Use when assessing software supply chain exposure from dependency manifests, lockfiles, SBOMs, VEX records, licence declarations, package names, or CVE identifiers. Covers dependency and transitive risk, SBOM validation against the NTIA minimum elements in CycloneDX and SPDX, VEX status interpretation, licence compliance, typosquatting and dependency confusion, and CVE triage through CVSS 4.0, EPSS, SSVC 2.1, and the CISA KEV catalogue. Produces a prioritised, SLA-bound remediation assessment.
secure-code-review
Use when performing a security-focused code review of a pull request, diff, file, or module, or when code touching authentication, authorisation, cryptography, input handling, deserialisation, file handling, or logging requires verification. Performs a structured review against OWASP ASVS 4.0.3 requirements and the CWE Top 25 (2024), producing findings mapped to ASVS controls and CWE identifiers with severity ratings and specific remediation guidance.
secrets-management
Use when examining secret handling, credential exposure, vault or cloud secrets manager integration, environment-file hygiene, rotation policy, or credential access for agents and CI/CD pipelines. Performs a structured secrets management assessment against the OWASP Secrets Management Cheat Sheet and NIST SP 800-57 Part 1 Rev 5, covering detection tooling, exposure routes, rotation automation, and centralised storage, without ever reproducing a secret value.