소스 정보
- 저장소
- lukemcqueen/hermes-cortex
- 최근 소스 활동
- 2026년 8월 24일 01:10
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 1
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/lukemcqueen/hermes-cortex --skill role-gating-and-public-moderation명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | role-gating-and-public-moderation |
| description | Role gating, PII tiers, and UGC moderation patterns. |
| version | 1.0.0 |
| category | software-development |
| platforms | ["linux","macos"] |
Patterns for a multi-role product with an anonymous/public surface plus
privileged surfaces (admin/editor) and user-submitted public content
(directory/listings/reviews). Distilled from the Example church-directory +
prayer-warrior build; see references/fastapi-example.md for the concrete
FastAPI implementation.
{register} endpoint must force role = seeker and ignore any
client-supplied role. Drop the role field from the request schema entirely
so a malicious payload is silently dropped by the validator.register({role:"admin"}) →
login → /auth/me returns role == seeker, and that account is 403 on
every privileged surface.role still seeker — NO privileged
access until an owner approves.warrior_status pending | approved). The role is
promoted only on approval (role → warrior, status → approved).ensure_user(session, email, pw, role, force_role=True) +
commit), then login normally. The same helper powers the seed script.forbidden not in entry for email/status/flags).status = pending, hidden from the
public. Only status == approved appears publicly.pending → approved | rejected | needs_info. Owner review
endpoint sets status + review notes + an optional harm/abuse flag.rejected + flagged. Flagged
entries are NEVER public, even if later approved by mistake.approved/public; only anonymous submissions enter the review queue.help_url so submitters are offered help, not just rejection.When adding a second dependency function next to an existing one (e.g. add
get_current_admin below get_current_evangelist), a replace-style patch can
accidentally consume the first function's trailing return user, so it falls
through and returns None — turning every gated endpoint into a 500. After any
such edit, confirm the ORIGINAL function still ends in return user (or run
the suite; the data-domain tests will catch it as 500s while auth tests pass).
Run the full API test suite (auth + RBAC + moderation) and assert: