Skip to content

docs(ad-hoc): add project documentation and agent instructions - #554

Open
andrii-vysotskyi-cko wants to merge 9 commits into
masterfrom
docs/project-documentation
Open

andrii-vysotskyi-cko wants to merge 9 commits into
masterfrom
docs/project-documentation

Conversation

@andrii-vysotskyi-cko

@andrii-vysotskyi-cko andrii-vysotskyi-cko commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Description

The repository had no internal documentation for contributors or coding agents. This PR adds a docs/ folder with a
development setup guide, a phone number metadata guide and a writing style guide, and adds agent instructions.

Solution

  • Add docs/README.md as the index of internal documentation, and link to it from the root README.md.
  • Add docs/development.md, and move the setup steps from the root README.md into it. The guide adds the Homebrew
    tools and why the project needs them, the iOS 26 simulator requirement, and how to run tests without credentials.
  • Add docs/phone-number-metadata.md. The guide describes how to update the phone number metadata from PhoneNumberKit
    with Scripts/PhoneNumberMetadata/Update.sh, and how to review the change.
  • Add docs/writing-style.md. The guide applies the writing principles of ASD-STE100 to documentation, DocC articles,
    code documentation, READMEs, agent instructions, commits and pull requests.
  • Add AGENTS.md with 2 sections: how to use the project documentation, and how to verify a change. The verification
    section points to docs/development.md and adds rules for agents only.
  • Add CLAUDE.md, which imports AGENTS.md. Claude Code then loads the same instructions as other agents.
  • Rewrite the root README.md to follow the guide. The note about the UI migration now says that the UIKit UI in
    ProcessOut is deprecated.

Notes

  • Existing DocC articles and code documentation do not follow the guide yet. A separate pass will update them.
  • Markdown prose wraps at 120 columns. Tables, headings and code blocks may exceed the limit.
  • The sample test credentials in the old README are replaced with placeholders.

Jira Issue

None.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The contributor instructions omit the required xcpretty installation and a credential-free test strategy that covers all modules despite the script exiting on the first integration-test failure.

2 open issues
What changed in this PR

This PR adds contributor documentation and shared agent instructions for the ProcessOut iOS SDK, with the root README linking to the new guides.

Changes:

  • Moves development setup into docs/ and adds phone number metadata update instructions.
  • Defines a repository-wide writing style and shared documentation and verification rules for agents.
  • Simplifies the root README, clarifies UIKit UI deprecation, and replaces sample credentials with placeholders.
File Description
README.md Links contributor guides and clarifies module descriptions and UI deprecation.
docs/​writing-style.md Defines writing rules for documentation and contributor text.
docs/​README.md Indexes the internal documentation.
docs/​phone-number-metadata.md Documents metadata updates, testing, and diff review.
docs/​development.md Documents prerequisites, setup, credentials, testing, and linting.
CLAUDE.md Imports the shared agent instructions.
AGENTS.md Defines documentation, verification, and generated-file rules for agents.

Review effort: Balanced

Comment thread docs/development.md Resolved
Comment thread docs/development.md Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The integration-test setup documentation omits required fixtures and hard-coded ID replacements, making missing fixtures difficult to distinguish from SDK failures.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

Low severity Document required integration test fixtures and local ID replacements

docs/​development.md:45

Setting these constants to a contributor's test project is not sufficient to run the integration suites. GatewayConfigurationsRepositoryTests.swift:36,50 and DefaultCardUpdateInteractorTests.swift:250 still use hard-coded gateway configuration and card IDs, which must exist in the selected project. Document the required fixtures and local ID replacements so contributors can distinguish missing fixtures from SDK failures.

2 resolved since last review

Review effort: Balanced

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants