Logo di Backend Reference

Backend Reference

OrganizzazionePopolare
agent0ai
Backend Reference

Riferimento di sola lettura per i contratti backend da cui dipende il frontend, inclusi routing, API, autenticazione, livelli e risoluzione dei moduli.

Add to TypingMind

Panoramica

Pubblicato daagent0ai
Repositoryspace-agent
Nome della skillBackend Reference
Stelle
1.4K
Fork
323
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da agent0ai su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Backend Reference in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/agent0ai/space-agent/tree/main/app/L0/_all/mod/_core/skillset/ext/skills/development/backend-reference
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/agent0ai/space-agent.git /tmp/space-agent
mkdir -p .claude/skills
cp -r /tmp/space-agent/app/L0/_all/mod/_core/skillset/ext/skills/development/backend-reference .claude/skills/agent0ai-backend-reference
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Backend Reference in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Backend Reference non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Backend Reference non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Use this skill when frontend work depends on understanding backend behavior. This skill is read-only context, not authorization to change backend files.

Hard Boundary

  • Do not edit server/, commands/, or packaging/ from this skill set.
  • If the task truly requires backend changes, stop and ask instead of treating this skill as permission.
  • Backend changes are non-standard in this project. Only ask for them when frontend-only work cannot safely enforce security, integrity, cross-user isolation, or runtime stability.
  • When you ask, explain why the frontend solution would be insufficient and describe the narrow backend change required.

Page And Request Flow

Current request order is:

  1. API preflight handling
  2. /api/proxy
  3. /api/<endpoint>
  4. /mod/...
  5. /~/... and /L0/..., /L1/..., /L2/...
  6. page shells and page actions

The browser app mounts through page shells in server/pages/. /login is public. / and /admin require authentication.

API Families

Important frontend-facing endpoint families are:

  • app files: file_list, file_paths, file_read, file_write, file_delete, file_copy, file_move, file_info, folder_download
  • local history: git_history_list, git_history_diff, git_history_preview, git_history_rollback, git_history_revert
  • modules: module_list, module_info, module_install, module_remove
  • runtime and identity: extensions_load, password_generate, password_change, user_crypto_session_key, user_self_info

These endpoints are thin wrappers over shared helpers in server/lib/customware/ and server/lib/auth/.

file_write still defaults to whole-file replacement, but it also supports operation: "append", "prepend", and "insert". Insert writes accept exactly one anchor through line, before, or after, use the first literal before or after match, treat line as a 1-based insertion point, and require utf8.

file_list and file_paths support access: "write" or writableOnly: true for writable-only discovery. They also support gitRepositories: true; with a pattern such as **/.git/, file_paths returns local-history owner roots like L1/team/ and L2/alice/ without exposing reserved .git metadata paths.

folder_download supports HEAD for permission-only validation and GET or POST for the streamed ZIP attachment. It creates the archive in server/tmp/ only for the actual download response, after the shared file-access layer approves the requested folder path.

git_history_list, git_history_diff, git_history_preview, git_history_rollback, and git_history_revert are enabled by CUSTOMWARE_GIT_HISTORY. The backend maps the requested path to a writable L1/<group>/ or L2/<user>/ owner repo, enforces permissions, paginates list metadata with optional file filters, reads per-file diffs separately, previews travel or revert affected files with optional operation-specific file patches, suppresses history scheduling during rollback, preserves ignored L2 auth files, preserves forward-travel refs during rollback when possible, and creates inverse commits for revert.

user_self_info is the frontend-facing identity snapshot. Frontend callers derive writable app roots from username, managedGroups, and _admin membership in groups without authorizing backend edits.

password_change is the authenticated self-service password-rotation endpoint for the current user. Frontend code should call it instead of writing ~/meta/password.json directly, because the backend validates the current password, seals the replacement verifier, clears sessions, and clears the current auth cookie.

user_crypto_session_key is the authenticated localStorage-restore endpoint. It returns the current session-derived wrapping key by hashing the live backend sessionId with the server-held session secret, so the browser can decrypt or encrypt the one persisted userCrypto localStorage blob without the server persisting that wrapping key or the user master key.

Module And Extension Resolution

  • /mod/... resolution goes through the layered customware model.
  • maxLayer constrains module and extension resolution and defaults to 2.
  • /admin effectively clamps module and extension resolution to L0.
  • Frontend HTML extensions resolve through ext/html/....
  • Frontend JS hooks resolve through ext/js/....
  • Frontend modules may also enumerate other extension-owned assets such as ext/panels/*.yaml through file_paths plus file_read when they only need readable logical file discovery and contents. extensions_load remains the backend contract for HTML and JS extension resolution, keeping maxLayer at the top level, ordered patterns groups in the request, and ordered grouped results with matching patterns plus resolved extensions.

Auth And User Storage

  • The server issues the space_session cookie and validates it by hashing it with a backend-held secret.
  • When the current login may auto-restore userCrypto on the same browser profile, the browser stores one encrypted userCrypto blob in localStorage, and authenticated browser code fetches the current session-derived wrapping key from /api/user_crypto_session_key.
  • User metadata lives at L2/<username>/user.yaml.
  • L2/<username>/meta/password.json stores a server-sealed SCRAM verifier envelope, not a self-sufficient plaintext verifier.
  • L2/<username>/meta/logins.json stores backend-keyed session verifiers plus signed session metadata.
  • Authenticated self-service password changes still stay backend-owned through /api/password_change; browser code may edit L2/<username>/user.yaml directly, but not the password verifier file.
  • User-owned modules live under L2/<username>/mod/.
  • Backend auth keys come from shared environment injection through SPACE_AUTH_PASSWORD_SEAL_KEY and SPACE_AUTH_SESSION_HMAC_KEY for multi-instance deployments, or from the local fallback server/data/auth_keys.json during single-instance development.

Why Frontend Developers Need This

  • to understand why a frontend file API call succeeds or fails
  • to understand where module and extension inheritance comes from
  • to understand why admin UI is firmware-clamped while normal app routing is layered
  • to understand the user and group storage model without editing backend logic
  • to identify the small set of cases where backend ownership is mandatory instead of merely convenient

Mandatory Doc Follow-Up

  • If backend contracts that the frontend depends on change, update the mirrored backend docs and the development skill subtree in the same session, even though this skill remains read-only guidance.

Domande frequenti

Cosa fa la skill IA Backend Reference?

Riferimento di sola lettura per i contratti backend da cui dipende il frontend, inclusi routing, API, autenticazione, livelli e risoluzione dei moduli.

Perché usare Backend Reference su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Backend Reference è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Backend Reference in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/agent0ai/space-agent/tree/main/app/L0/_all/mod/_core/skillset/ext/skills/development/backend-reference. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Backend Reference?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Backend Reference?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Backend Reference: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Backend Reference è gratuita?

Sì. È pubblicata su GitHub da agent0ai con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇