Skip to content
Back to skills

Repo Development

ASecurity

"Maintain LightFM editable builds, compiled extension variants,

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
businesspythonbashtestingapibackenddocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill repo-development --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Repo Development?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Repo Development
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-repo-development-639acbb5/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-repo-development-639acbb5)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: repo-development
description: "Maintain LightFM editable builds, compiled extension variants,
  Cython regeneration, tests, lint, docs, and CI expectations."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# LightFM Repo Development

Use this sub-skill when the user is maintaining the LightFM repository itself: editable installs, C extension builds, OpenMP/no-OpenMP behavior, Cython template changes, focused tests, linting, documentation builds, or CI compatibility.

## Route map

- For fitting models, choosing losses, calling `LightFM.fit`, `fit_partial`, `predict`, or inspecting learned representations, route to [model-training](../model-training/SKILL.md).
- For `Dataset`, interaction matrices, user/item feature construction, identity features, or data loaders, route to [data-features](../data-features/SKILL.md).
- For `random_train_test_split`, `precision_at_k`, `auc_score`, `predict_rank`, or train/test intersection handling, route to [evaluation-splitting](../evaluation-splitting/SKILL.md).
- Stay here for repository maintenance, package installation, compiled extension diagnosis, Cython regeneration, tests, lint, docs, and CI expectations.

## Safe maintainer workflow

1. Work from an isolated Python environment in a LightFM checkout. Treat the package as CPU-only; there is no GPU implementation to enable or verify.
2. Install the package editable before testing. Add test, lint, or docs requirements only for the scope being changed.
3. If changing the Cython template or generated extension sources, regenerate the OpenMP and no-OpenMP C files, reinstall editable, and run focused extension/API tests before broader tests.
4. Use focused pytest targets first, then the full suite when the change can affect package behavior broadly. Dataset and MovieLens-oriented tests may need cached/downloaded data and can be slower than pure in-memory tests.
5. Run the bundled diagnostic after build or install changes from this sub-skill directory, using the Python environment where the checkout is installed:

   ```bash
   python scripts/check_lightfm_install.py --tiny-run
   ```

6. Keep publication actions explicit. Local docs builds are fine when scoped; commands that switch branches, commit, or push must not run without release-maintainer approval.

## Reference links

- [Maintenance commands and expectations](references/maintenance.md)
- [Build and install troubleshooting](references/troubleshooting.md)
- [Install diagnostic script](scripts/check_lightfm_install.py)

## Expected observations

- `import lightfm` reports version `1.17` for this distilled source version.
- `lightfm._lightfm_fast` imports a compiled backend: OpenMP-enabled on Linux when the compiler/runtime supports it, or no-OpenMP on macOS/Windows and fallback builds.
- OpenMP changes affect CPU threading only; they do not create GPU support.
- CI expectations cover Python 3.7 and 3.11 across the configured OS matrix, with macOS/Windows limited to Python 3.11 in the observed workflow.

Files in this skill

  • SKILL.md3 KB
  • references/maintenance.md7.6 KB
  • references/troubleshooting.md8.6 KB
  • scripts/check_lightfm_install.py6.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.