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.
git clone --depth 1 https://github.com/inventwo/ioBroker.life360ngWrote 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.
[](https://agentmods.dev/rules/inventwo/iobroker.life360ng/life360ng-patterns)<a href="https://agentmods.dev/rules/inventwo/iobroker.life360ng/life360ng-patterns"><img src="https://agentmods.dev/badge/rules/inventwo/iobroker.life360ng/life360ng-patterns/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/inventwo/iobroker.life360ng/life360ng-patterns"><img src="https://agentmods.dev/badge/rules/inventwo/iobroker.life360ng/life360ng-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00582 |
| Opus 5 | $0.00000 | $0.00291 |
| Sonnet 5 | $0.00000 | $0.00116 |
| Haiku 4.5 | $0.00000 | $0.00058 |
Grade A, and why
life360ng-patterns 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 10d 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.
How it starts
The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Life360ng Patterns
Architecture
main.js— adapter entry (Life360 extends utils.Adapter); wires connectors andLife360Trackerlib/life360CloudConnector.js— Life360 REST API, polling, HTTPlib/life360DbConnector.js— ioBroker states/objects, notifications, places integrationlib/life360Tracker.js— location tracking and HTML map generationlib/iobHelpers.js— shared helpers
API communication
- Base URL:
https://api.life360.com/v3/ - Auth:
Authorization: Bearer <token>header (adapter.config.life360_token) - Token-only auth (no password/phone login — required for EU users)
- Use native
node:httpsonly - HTTP 401 → expired/invalid token; set
info.connectionfalse, log warning - Cloudflare/rate-limit responses: log clearly; do not tight-loop retries
Polling
- Managed in
life360CloudConnector.jsvia chainedadapter.setTimeout(notsetInterval) - Stop with
disablePolling()→adapter.clearTimeout(objIntervalPoll) - Interval:
adapter.config.life360_polling_interval(seconds, minimum 15) setupPolling(callback)called frommain.jsonReady()
Custom places (My Places)
- Defined in
admin/jsonConfig.jsontable on_myplacestab →config.places - Presence via Haversine formula against member lat/lon
- Custom places take priority over Life360 cloud places in
locationName
State naming
- People:
life360ng.<instance>.people.<name>.<state> - Places:
life360ng.<instance>.places.<name>.<state> - My places:
life360ng.<instance>.myplaces.<name>.<state> - Connection:
life360ng.<instance>.info.connection
Optional integrations
- Forward location data to ioBroker
placesadapter when configured - Notifications: Telegram, Alexa, per-datapoint overrides (
notify_place_overrides) - Admin messages:
testTelegram,testAlexa,getPlacesList,getPersonsListinmain.jsonMessage()
Pitfalls
- Do not add axios or other HTTP libraries
- Do not use
clearIntervalfor polling — useclearTimeoutonobjIntervalPoll - Bearer token in config without the word
Bearer, spaces, or quotes - On unload: stop tracker, disable polling, clear DB connector timers, set
info.connectionfalse
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.
- 10d ago First seen · 58 lines · 0 tokens per session scan A 39b177bf2779
life360ng-patterns is a cursor rule published in the GitHub repository inventwo/ioBroker.life360ng (4 stars, last pushed 16d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 582 tokens. 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-31.
Other cursor rules, from other repositories
python
Python best practices and patterns for modern software development with Flask and SQLite.
api-property-optionality-hygiene
Fix ApiProperty/ApiPropertyOptional optionality mismatches in DTO files; use for scheduled batch fixes or DTO edits.
django
Definitive guidelines for writing maintainable, performant, and secure Django applications, emphasizing modern best practices, clear code organization, and efficient patterns.
cursor
You are working on the checkout service. Preserve transaction integrity and auditability.
shared-libraries
Shared libraries - condition framework, inventory containers, file-backed DB, itinerary, references.
env-validation-gate
Env validation gate — every app with ≥1 required env var validates its contract at boot via Zod; raw process.env is banned outside the env module. Full pattern in .claude/skills/t2000-env-gate/.