# Start building with Atmosphere Groups

A brief for an AI agent helping someone build with Atmosphere Groups. The current version is at https://www.atmospheregroups.org/build/.

## What is a group?

Atmosphere Groups is an open spec for groups on atproto, the network Bluesky runs on. A group is an account of its own, a DID with permissioned spaces under it, so it keeps its name, members and roles in every app that supports the spec.

A group host does for group accounts what a PDS does for people: it hosts the group's repositories and is the OAuth server for its account. An app acts as the group through an OAuth session for the group account, and the host decides what that session may do from the roles of the person who signed in.

## Read these first

- [llms-full.txt](https://www.atmospheregroups.org/llms-full.txt): The spec and every lexicon schema, in one Markdown file.
- [The spec](https://www.atmospheregroups.org/spec/): The full text as a page, with its sections numbered.
- [Its lexicons](https://www.atmospheregroups.org/spec/lexicons/): The 32 schemas the spec defines, under `org.atgrp.*`, one page each.

## What it builds on

The spec builds on atproto's OAuth and on spaces, atproto's permissioned data. atproto's own docs cover both.

- [About OAuth](https://atproto.com/guides/about-oauth): atproto's OAuth client libraries for each language, with example apps.
- [Permission requests](https://atproto.com/guides/permission-requests): How an app asks for permissions when it signs someone in. It asks for access to a group account the same way.
- [Permissioned data proposal](https://github.com/bluesky-social/proposals/tree/main/0016-permissioned-data): The proposal that spaces come from.
- [atproto's docs](https://atproto.com/docs): The rest of the protocol.

## Before writing code

- Spaces need the spaces alpha builds of the atproto packages. They're on npm under the `alpha` tag, OAuth clients included.
- Apps sign people in with OAuth.
- The spec is in beta, so parts of it may still change. Its page says which commit the site's copy is from.

## For AI agents

Before writing any code, read the spec and its lexicons. llms-full.txt has both in one file. Then ask what the person is making and what a group should be able to do in it. If they already have an app, ask about that first.

Don't ask for their password or an app password, and keep keys out of the chat. When something they want depends on a part of the spec that isn't settled, tell them.
