Faheem Code in your SDLC
Faheem Code can enhance every phase of your software development lifecycle (SDLC), from planning through deployment. This guide shows some example prompts that you can use when you integrate Faheem Code into your development workflow.
Integration with development workflows
Planning phase
Use Faheem Code during planning to accelerate technical decisions:
Technical specification assistance:
Create a technical specification for adding search functionality:
Requirements from product:
- Full-text search across products and articles
- Filter by category, price range, and date
- Sub-200ms response time at 1000 QPS
Provide:
1. Architecture options (Elasticsearch vs. PostgreSQL full-text)
2. Data model changes needed
3. API endpoint designs
4. Estimated implementation effort
5. Risks and mitigations
Sprint planning support:
Review these user stories and create implementation tasks in our Linear task management software using the LINEAR_API_KEY environment variable:
Story 1: As a user, I can reset my password via email
Story 2: As an admin, I can view user activity logs
For each story, create:
- Technical subtasks
- Estimated effort (hours)
- Dependencies on other work
- Testing requirements
Development phase
Faheem Code excels during active development:
Feature implementation:
- Write new features with clear specifications
- Follow existing code patterns automatically
- Generate tests alongside code
- Create documentation as you go
Bug fixing:
- Analyze error logs and stack traces
- Identify root causes
- Implement fixes with regression tests
- Document the issue and solution
Code improvement:
- Refactor for clarity and maintainability
- Optimize performance bottlenecks
- Update deprecated APIs
- Improve error handling
Testing phase
Automate test creation and improvement:
Add comprehensive tests for the UserService module:
Current coverage: 45%
Target coverage: 85%
1. Analyze uncovered code paths using the codecov module
2. Write unit tests for edge cases
3. Add integration tests for API endpoints
4. Create test data factories
5. Document test scenarios
Each time you add new tests, re-run codecov to check the increased coverage. Continue until you have sufficient coverage, and all tests pass (by either fixing the tests, or fixing the code if your tests uncover bugs).
Review phase
Accelerate code reviews:
Review this PR for our coding standards:
Check for:
1. Security issues (SQL injection, XSS, etc.)
2. Performance concerns
3. Test coverage adequacy
4. Documentation completeness
5. Adherence to our style guide
Provide actionable feedback with severity ratings.
Deployment phase
Assist with deployment preparation:
Prepare for production deployment:
1. Review all changes since last release
2. Check for breaking API changes
3. Verify database migrations are reversible
4. Update the changelog
5. Create release notes
6. Identify rollback steps if needed
CI/CD integration
Faheem Code can be integrated into your CI/CD pipelines through the Software Agent SDK. Rather than using hypothetical actions, you can build powerful, customized workflows using real, production-ready tools.
GitHub Actions integration
The Software Agent SDK provides composite GitHub Actions for common workflows:
- Automated PR Review - Automatically review pull requests with inline comments
- SDK GitHub Workflows Guide - Build custom GitHub workflows with the SDK
For example, to set up automated PR reviews, see the Automated Code Review guide which uses the SMART-National-Solution/faheem-code-extensions/plugins/pr-review composite action.
What you can automate
Using the SDK, you can create GitHub Actions workflows to:
- Automatic code review when a PR is opened
- Automatically update docs weekly when new functionality is added
- Diagnose errors that have appeared in monitoring software such as DataDog and automatically send analyses and improvements
- Manage TODO comments and track technical debt
- Assign reviewers based on code ownership patterns
Getting started
To integrate Faheem Code into your CI/CD:
- Review the SDK Getting Started guide
- Explore the GitHub Workflows examples
- Set up your
LLM_API_KEYas a repository secret - Use the provided composite actions or build custom workflows
See the Use Cases section for complete examples of production-ready integrations.
Team workflows
Solo developer workflows
For individual developers:
Daily workflow:
- Morning review: Have Faheem Code analyze overnight CI results
- Feature development: Use Faheem Code for implementation
- Pre-commit: Request review before pushing
- Documentation: Generate/update docs for changes
Best practices:
- Set up automated reviews on all PRs
- Use Faheem Code for boilerplate and repetitive tasks
- Keep AGENTS.md updated with project patterns
Small team workflows
For teams of 2-10 developers:
Collaborative workflow:
Team Member A: Creates feature branch, writes initial implementation
Faheem Code: Reviews code, suggests improvements
Team Member B: Reviews Faheem Code suggestions, approves or modifies
Faheem Code: Updates documentation, adds missing tests
Team: Merges after final human review
Communication integration:
- Slack notifications for Faheem Code findings
- Automatic issue creation for bugs found
- Weekly summary reports
Enterprise team workflows
For larger organizations:
Governance and oversight:
- Configure approval requirements for Faheem Code changes
- Set up audit logging for all AI-assisted changes
- Define scope limits for automated actions
- Establish human review requirements
Scale patterns:
Central Platform Team:
├── Defines Faheem Code policies
├── Manages integrations
└── Monitors usage and quality
Feature Teams:
├── Use Faheem Code within policies
├── Customize for team needs
└── Report issues to platform team
Best practices
Code review integration
Set up effective automated reviews:
# .faheem-code/review-config.yml
review:
focus_areas:
- security
- performance
- test_coverage
- documentation
severity_levels:
block_merge:
- critical
- security
require_response:
- major
informational:
- minor
- suggestion
ignore_patterns:
- "*.generated.*"
- "vendor/*"
Pull request automation
Automate common PR tasks:
| Trigger | Action |
|---|---|
| PR opened | Auto-review, label by type |
| Tests fail | Analyze failures, suggest fixes |
| Coverage drops | Identify missing tests |
| PR approved | Update changelog, check docs |
Quality gates
Define automated quality gates:
quality_gates:
- name: test_coverage
threshold: 80%
action: block_merge
- name: security_issues
threshold: 0 critical
action: block_merge
- name: code_review_score
threshold: 7/10
action: require_review
- name: documentation
requirement: all_public_apis
action: warn
Automated testing
Integrate Faheem Code with your testing strategy:
Test generation triggers:
- New code without tests
- Coverage below threshold
- Bug fix without regression test
- API changes without contract tests
Example workflow:
on:
push:
branches: [main]
jobs:
ensure-coverage:
steps:
- name: Check coverage
run: |
COVERAGE=$(npm test -- --coverage | grep "All files" | awk '{print $10}')
if [ "$COVERAGE" -lt "80" ]; then
faheemcode generate-tests --target 80
fi
Common integration patterns
Pre-commit hooks
Run Faheem Code checks before commits:
# .git/hooks/pre-commit
#!/bin/bash
# Quick code review
faheemcode review --quick --staged-only
if [ $? -ne 0 ]; then
echo "Faheem Code found issues. Review and fix before committing."
exit 1
fi
Post-commit actions
Automate tasks after commits:
# .github/workflows/post-commit.yml
on:
push:
branches: [main]
jobs:
update-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update API docs
run: faheemcode update-docs --api
- name: Commit changes
run: |
git add docs/
git commit -m "docs: auto-update API documentation" || true
git push
Scheduled tasks
Run regular maintenance:
# Weekly dependency check
on:
schedule:
- cron: '0 9 * * 1' # Monday 9am
jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check dependencies
run: |
faheemcode check-dependencies --security --outdated
- name: Create issues
run: faheemcode create-issues --from-report deps.json
Event-triggered workflows
You can build custom event-triggered workflows using the Software Agent SDK. For example, the Incident Triage use case shows how to automatically analyze and respond to issues.
For more event-driven automation patterns, see:
- SDK GitHub Workflows Guide - Build custom workflows triggered by GitHub events